From b4358a649c8d4e41aed7661b58f1fb91144d8208 Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 11 Oct 2018 12:58:08 +0200 Subject: [PATCH] Allow commands by mentioning the bot. Closes #22 --- src/pluralkit/bot/commands/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/commands/__init__.py b/src/pluralkit/bot/commands/__init__.py index 4954490a..565ba6d4 100644 --- a/src/pluralkit/bot/commands/__init__.py +++ b/src/pluralkit/bot/commands/__init__.py @@ -146,7 +146,7 @@ async def run_command(ctx: CommandContext, func): async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool: - prefix = "^pk(;|!)" + prefix = "^(pk(;|!)|<@{}> )".format(client.user.id) commands = [ (r"system (new|register|create|init)", system_commands.new_system), (r"system set", system_commands.system_set),