1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Aggiunti i due punti (e altri caratteri) a mm! :O

This commit is contained in:
Steffo 2019-04-10 16:05:03 +02:00
parent f41bfb65c0
commit 465c960a1f

View file

@ -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)