Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank (anonymous) snippet causes bot to crash. #673

Open
kyle-wordpress opened this issue Nov 23, 2021 · 2 comments
Open

Blank (anonymous) snippet causes bot to crash. #673

kyle-wordpress opened this issue Nov 23, 2021 · 2 comments
Labels
bug needs reproduction This issue need to be reproduced by someone, or needs to be confirmed to still be an issue on latest

Comments

@kyle-wordpress
Copy link

kyle-wordpress commented Nov 23, 2021

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.

image

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.

@kyle-wordpress
Copy link
Author

Note: Type of database does not affect it. I tried it with a modmail bot with the same settings but the database was SQLite.

@kyle-wordpress
Copy link
Author

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. (/home/runner/#######/src/modules/snippets.js:63:32)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)

@DarkView DarkView added bug needs reproduction This issue need to be reproduced by someone, or needs to be confirmed to still be an issue on latest labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs reproduction This issue need to be reproduced by someone, or needs to be confirmed to still be an issue on latest
Projects
None yet
Development

No branches or pull requests

2 participants