Skip to content

Commit

Permalink
Add ban alias
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf authored Mar 13, 2024
1 parent 111096e commit bd1ee22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ async def _(msg: Bot.MessageSession):
await msg.finish(result)


admin = module('admin', base=True, required_admin=True, desc='{core.help.admin.desc}')

admin = module('admin',
base=True,
required_admin=True,
alias={'ban': 'admin ban',
'unban': 'admin unban',
'ban list': 'admin ban list'},
desc='{core.help.admin.desc}')

@admin.command([
'add <user> {{core.help.admin.add}}',
Expand Down

0 comments on commit bd1ee22

Please sign in to comment.