mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Aggiunti i due punti (e altri caratteri) a mm! :O
This commit is contained in:
parent
f41bfb65c0
commit
465c960a1f
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ def cmd_mm(bot: telegram.Bot, update: telegram.Update, session: db.Session):
|
||||||
if user is None:
|
if user is None:
|
||||||
reply(bot, update, strings.LINK.ERRORS.ROYALNET_NOT_LINKED)
|
reply(bot, update, strings.LINK.ERRORS.ROYALNET_NOT_LINKED)
|
||||||
return
|
return
|
||||||
match = re.match(r"/(?:mm|matchmaking)(?:@royalgamesbot)?(?: (?:([0-9]+)-)?([0-9]+))? (?:per )?([A-Za-z0-9!\-_. ]+)(?:.*\n(.+))?",
|
match = re.match(r"/(?:mm|matchmaking)(?:@royalgamesbot)?(?: (?:([0-9]+)-)?([0-9]+))? (?:per )?([A-Za-z0-9!\-_.:/\\+()[\]{} ]+)(?:.*\n(.+))?",
|
||||||
update.message.text)
|
update.message.text)
|
||||||
if match is None:
|
if match is None:
|
||||||
reply(bot, update, strings.MATCHMAKING.ERRORS.INVALID_SYNTAX)
|
reply(bot, update, strings.MATCHMAKING.ERRORS.INVALID_SYNTAX)
|
||||||
|
|
Loading…
Reference in a new issue