Skip to content

Commit

Permalink
fix help command removal
Browse files Browse the repository at this point in the history
  • Loading branch information
lbatalha committed Apr 1, 2024
1 parent c27607a commit c247b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
def help(cmd):
if cmd.args: # only reply on "!help"
return
commands = cmd.bot.commands.keys()
commands = list(cmd.bot.commands.keys())
guild_id = cmd.bot.channels[cmd.channel_id]
if config.bot.roles is None or guild_id != config.bot.roles['server']:
for name, func in cmd.bot.commands.items():
if func.__module__ == 'management':
del commands[name]
commands.remove(name)
reply = 'commands: `!%s`' % '`, `!'.join(commands)
cmd.reply(reply)

Expand Down

0 comments on commit c247b65

Please sign in to comment.