Closed Clasko closed 1 year ago
Do you have any special characters in the answer
string for your Prime Sub command definition which could be interpreted as special characters of a regex? If so, the source of error seems to be this part:
re.match("^ +", re.sub(first, "", s))
The second argument within the match
would better be s.replace(first, "")
to prevent misinterpretation of characters in the first
variable.
I have changed that line in my local copy of the repository, will keep an eye on this issue, and update the repository after having confirmed the potential fix is working.
I don't think so. The answer string is "The one and only @$subName kommt mit einem Prime Sub um die Ecke! DANKE <3"
I have now updated the repository with the fix mentioned above and can no longer reproduce the issue. Please get the most recent Willowbot version and check out if it works for you.
Will do. Thank you. :)
I have added a debug mode for the bot (manual section 5 for further instructions) so you can test your command and see if the bot works for you without having to wait for a real Prime sub.
Looks good to me:
Great. :-) I’ll leave the issue open anyway and wait for your confirmation that the command also works with the real chat messages, which I assume they do, as at least my tests under those circumstances worked well.
Traceback: