From 172ae8f082b15e4085ffe7a69813be85ea81829c Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 6 Nov 2017 23:51:07 -0500 Subject: [PATCH] WIP HelpFormatter testing --- src/main/run.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/run.py b/src/main/run.py index 8a68558..ccf191f 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -20,14 +20,19 @@ from utils import utils as u # log.basicConfig(level=log.INFO) +class HelpFormatter(commands.HelpFormatter): + async def format(): + pass + + def get_prefix(bot, message): if isinstance(message.guild, d.Guild) and message.guild.id in u.settings['prefixes']: return u.settings['prefixes'][message.guild.id] return u.config['prefix'] -bot = commands.Bot(command_prefix=get_prefix, formatter=commands.HelpFormatter( - show_check_failure=True), description='Experimental miscellaneous bot') +help_formatter = HelpFormatter(show_check_failure=True) +bot = commands.Bot(command_prefix=get_prefix, formatter=help_formatter, description='Experimental miscellaneous bot') # Send and print ready message to #testing and console after logon