From 8b8c48d68ee0fa0fb2e91b0b35d65f74ed0aa3c5 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Fri, 17 Apr 2020 17:04:02 -0400 Subject: [PATCH] restore _ command sep --- ubot/command_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/command_handler.py b/ubot/command_handler.py index 9cbb31e..e82f608 100644 --- a/ubot/command_handler.py +++ b/ubot/command_handler.py @@ -7,7 +7,7 @@ from telethon import events class CommandHandler(): def __init__(self, client, logger, settings): - self.pattern_template = "(?is)^{0}{1}(?: |$)(.*)" + self.pattern_template = "(?is)^{0}{1}(?: |$|_)(.*)" self.incoming_commands = {} self.logger = logger self.settings = settings