def getVisibleCommands(self, obj=None): obj = obj or self cmds = DefaultBotCommandHandler.getVisibleCommands(self, obj) if config['help'].as_bool('hide_auth_commands'): return [c for c in cmds if not hasattr(getattr(obj, c), 'auth')] else: return ["@%s"%c if hasattr(getattr(obj, c), 'auth') else c for c in cmds]