mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Allow commands by mentioning the bot. Closes #22
This commit is contained in:
parent
4a48e43d13
commit
b4358a649c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue