diff options
-rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ def startup(number): s = Signal(number) # with args - @s.chat_handler("/([^\\s]+)\\s+(.*)", order=10) # This is case-insensitive. + @s.chat_handler("^/([^\\s]+)\\s+([^$]*)$", order=10) # This is case-insensitive. def klinger(message, match): # Returning `False` as the first argument will cause matching to continue # after this handler runs. @@ -55,7 +55,7 @@ def startup(number): return stop, answer # no args - @s.chat_handler("/(.+)", order=20) # This is case-insensitive. + @s.chat_handler("^/(.+)$", order=20) # This is case-insensitive. def klinger(message, match): # Returning `False` as the first argument will cause matching to continue # after this handler runs. |