Closed simshadows closed 2 years ago
I just checked and if you write code like "a" !== "b"
it will see as if is a command, so even normal code written could be interpreted by the bot. therefore I also think that we should change this behavior
🤔
Side-note: the error message is also vulnerable to MD injection
just to add to the issue for documentation purposes, @doulovera pointed out that any message containing !
in the beginning will trigger the command, even if is in a codeblock.
Due to this, I'm in favor of @doulovera proposal of only triggering a command if is in the beginning of a message.
Currently (as far as I can tell), all invalid commands are replied to in the same channel of invocation:
I think it's worth considering changing to a more silent behaviour.
My suggestion:
!poiints
will not be given feedback by the bot.!random
command.!random 10
is a command to dice roll from 1 to 10.!random 9999999999999999999999999999999999
is an invalid command because the number is too big.Alternative ideas:
(This issue originates from the comments of #24)