modmailbot
modmailbot copied to clipboard
Blank (anonymous) snippet causes bot to crash.
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.
Thank you.
Note: Type of database does not affect it. I tried it with a modmail bot with the same settings but the database was SQLite.
No config needed, just tried it with !! and !!! on their own with the same error.
Error: TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))
at Client.