Blank (anonymous) snippet causes bot to crash. #673
Labels
bug
needs reproduction
This issue need to be reproduced by someone, or needs to be confirmed to still be an issue on latest
Hello there. I believe to have found an unreported bug. Prefix is =
If you leave a snippet blank, then the bot will crash. Prefixes I am using (if this affects anything):
snippetPrefixAnon = =l
snippetPrefix = =lr
Other settings that may be conflicting:
alwaysReply = on
alwaysReplyAnon = on
dbType = mysql
More settings available upon request.
As you can see by the screenshot I am using the 'hello' snippet. I ran the snippet anonymously (=lhello) and normally (=lrhello), both working fine. As soon as I put the command blank (=lr) then the bot crashes. You can see me attempt to run the same command again with no success.
This is the exact error message:
Error: TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
at Client. (/home/runner/########/src/modules/snippets.js:63:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Thank you.
The text was updated successfully, but these errors were encountered: