-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[eventMacro] if statement bug #1316
Comments
You're missing a closing bracket. |
Sorry, forgot it when I was trying to reproduce the bug. I've edited first post |
Okay, so why use the if statement for the regex detection? I'm sure the parentheses of regex is messing with the if statement formatting. Try this.
It will only activate when a private message contains your desired regex. No need for a check for a private message first, then check what the message contains. |
regex on eventMacro doesn't support you use however, in a automacro condition, it works normally there is a Pull Request to solve this issue (i did it) but only the creator of eventMacro can approve, and he is VERY busy with college and this regex is wrong |
I highly recommend you all using the strict regex. In this case, I suggest If you want to examine or test out regex, please try it on online regex tester sites. i.e. https://regexr.com/ |
I'm doing macro for spam blocking and I'm faced that if statement is bugged, it does not work with some phrases that contains <<<<<<< or >>>>>> symbols
My macro:
Console error message:
The private message from spamer:
The text was updated successfully, but these errors were encountered: