Allow commands by mentioning the bot. Closes #22
This commit is contained in:
parent
4a48e43d13
commit
b4358a649c
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user