Hi all
I'm running "Closed Beta - Revision 0.8.7.0"
BUG:If the first agrument of the
@customjsonapi@ contains a variabel (for example
@points@) that contains a comma -> the
@customjsonapi@ fails and the URL is returned in Chat.
BACKGROUND:I have a PHP file running on my website that should be called from Deepbot.
In order to calculate a result it needs information about the user like
@points@ and
@user@.
My only way to send these information is via GET-params in the URL. So my command looks like this:
@customjsonapi@[http://example.com/twitch/event/add.php?c=dorrbaume&u=@user@&p=@points@&e=eventname,result]
The problem is, that
@points@ use comma as thousands digit what also marks the end of the URL for the
@customjsonapi@RECOMMENTATION:This happens to me since the 0.8.6.0 Update
It seems you parse the values of the variabels into the URL-string before you run the
@customjsonapi@.
But somehow this worked in earlyer versions of DeepBot.
I guess you need to distinguish the two
@customjsonapi@ parameters first, and parse the URL-string after that.
Or you could add a new variable for points without thousands digit for calculations.
But it's a quick fix because variabels like
@target@ could still cause problems.
PS:My biggest problem is that Deepbot reveals the dynamic URL if the command fails.
Everybody in Chat can klick it and can confuse my PHP script.
I would like to see that Deepbot keeps the parameters of
@customjsonapi@ as a secret, even if it fails.