Add command aliases
This commit is contained in:
parent
0cc55e5717
commit
52e1c06d1b
@ -171,9 +171,9 @@ import pluralkit.bot.commands.system_commands
|
||||
|
||||
|
||||
async def command_root(ctx: CommandContext):
|
||||
if ctx.match("system"):
|
||||
if ctx.match("system") or ctx.match("s"):
|
||||
await system_commands.system_root(ctx)
|
||||
elif ctx.match("member"):
|
||||
elif ctx.match("member") or ctx.match("m"):
|
||||
await member_commands.member_root(ctx)
|
||||
elif ctx.match("link"):
|
||||
await system_commands.account_link(ctx)
|
||||
@ -187,7 +187,7 @@ async def command_root(ctx: CommandContext):
|
||||
await misc_commands.invite_link(ctx)
|
||||
elif ctx.match("export"):
|
||||
await misc_commands.export(ctx)
|
||||
elif ctx.match("switch"):
|
||||
elif ctx.match("switch") or ctx.match("sw"):
|
||||
await switch_commands.switch_root(ctx)
|
||||
elif ctx.match("token"):
|
||||
await api_commands.token_root(ctx)
|
||||
|
@ -28,7 +28,7 @@ async def specific_member_root(ctx: CommandContext):
|
||||
|
||||
if ctx.match("name") or ctx.match("rename"):
|
||||
await member_name(ctx, member)
|
||||
elif ctx.match("description"):
|
||||
elif ctx.match("description") or ctx.match("desc"):
|
||||
await member_description(ctx, member)
|
||||
elif ctx.match("avatar") or ctx.match("icon"):
|
||||
await member_avatar(ctx, member)
|
||||
|
@ -28,7 +28,7 @@ async def system_root(ctx: CommandContext):
|
||||
await system_tag(ctx)
|
||||
elif ctx.match("new") or ctx.match("register") or ctx.match("create") or ctx.match("init"):
|
||||
await system_new(ctx)
|
||||
elif ctx.match("delete") or ctx.match("delete") or ctx.match("erase"):
|
||||
elif ctx.match("delete") or ctx.match("remove") or ctx.match("destroy") or ctx.match("erase"):
|
||||
await system_delete(ctx)
|
||||
elif ctx.match("front") or ctx.match("fronter") or ctx.match("fronters"):
|
||||
await system_fronter(ctx, await ctx.ensure_system())
|
||||
|
Loading…
Reference in New Issue
Block a user