aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index c08d828..4075c7b 100755
--- a/main.py
+++ b/main.py
@@ -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.