From c0b0d2bb1aac8f9f8622a9de38c56610abf05268 Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Fri, 18 Jan 2019 22:29:42 +0100 Subject: Redirecting output of help of regular users to bot-commands --- bot/cogs/help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/cogs/help.py b/bot/cogs/help.py index ded068123..2168e2a60 100644 --- a/bot/cogs/help.py +++ b/bot/cogs/help.py @@ -10,6 +10,8 @@ from discord.ext.commands import CheckFailure from fuzzywuzzy import fuzz, process from bot import constants +from bot.constants import Roles +from bot.decorators import redirect_output from bot.pagination import ( DELETE_EMOJI, FIRST_EMOJI, LAST_EMOJI, LEFT_EMOJI, LinePaginator, RIGHT_EMOJI, @@ -23,7 +25,7 @@ REACTIONS = { LAST_EMOJI: 'end', DELETE_EMOJI: 'stop' } - +STAFF_ROLES = Roles.helpers, Roles.moderator, Roles.admin, Roles.owner Cog = namedtuple('Cog', ['name', 'description', 'commands']) @@ -652,6 +654,7 @@ class Help: Custom Embed Pagination Help feature """ @commands.command('help') + @redirect_output(constants.Channels.bot, STAFF_ROLES) async def new_help(self, ctx, *commands): """ Shows Command Help. -- cgit v1.2.3