1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

WIP HelpFormatter testing

This commit is contained in:
Myned 2017-11-06 23:51:07 -05:00
parent 1ccd79d64c
commit 172ae8f082

View file

@ -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