mirror of
https://github.com/Nick80835/microbot
synced 2025-08-22 01:58:17 +00:00
make command regex work as expected again
This commit is contained in:
parent
666ae13e81
commit
d0187b585b
@ -16,9 +16,9 @@ from ubot.database import ChatWrapper
|
||||
from .fixes import inline_photos
|
||||
|
||||
# 0 = command prefix, 1 = command, 2 = bot username
|
||||
PATTERN_TEMPLATE = "^{0}({1})(?:[ _]?|@{2}[ _]?)(.*)"
|
||||
PATTERN_TEMPLATE = "^{0}({1})(?:@{2})?(?:[ _]|\n+|$)(.*)?"
|
||||
# 0 = command
|
||||
SIMPLE_PATTERN_TEMPLATE = "^({0})[ _](.*)"
|
||||
SIMPLE_PATTERN_TEMPLATE = "^({0})(?:[ _]|\n+|$)(.*)?"
|
||||
RAW_PATTERN_TEMPLATE = "{0}"
|
||||
MODERATION_COMMAND_COOLDOWN_SEC = 3
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user