How to make a twitch bot recognize negative number - 10/03/16 11:47 PM
Hello, I want to make a simple code where the bot would recognize whether the number a person sending the command is typing would be positive or negative. It would look something like that:
or
I have tried putting a variable after the command like so:
But this doesn't seem to work.
Any idea how should it look like? Thank you in advance for helping me
Quote:
Person: !number 3
Bot: The number is positive.
Bot: The number is positive.
or
Quote:
Person: !number -3
Bot: The number is negative.
Bot: The number is negative.
I have tried putting a variable after the command like so:
Code:
on *:TEXT:!number %number:#:
But this doesn't seem to work.
Any idea how should it look like? Thank you in advance for helping me