Allow commands by mentioning the bot. Closes #22

This commit is contained in:
Ske 2018-10-11 12:58:08 +02:00
parent 4a48e43d13
commit b4358a649c

View File

@ -146,7 +146,7 @@ async def run_command(ctx: CommandContext, func):
async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool: async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool:
prefix = "^pk(;|!)" prefix = "^(pk(;|!)|<@{}> )".format(client.user.id)
commands = [ commands = [
(r"system (new|register|create|init)", system_commands.new_system), (r"system (new|register|create|init)", system_commands.new_system),
(r"system set", system_commands.system_set), (r"system set", system_commands.system_set),