1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 06:37:29 +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) # log.basicConfig(level=log.INFO)
class HelpFormatter(commands.HelpFormatter):
async def format():
pass
def get_prefix(bot, message): def get_prefix(bot, message):
if isinstance(message.guild, d.Guild) and message.guild.id in u.settings['prefixes']: if isinstance(message.guild, d.Guild) and message.guild.id in u.settings['prefixes']:
return u.settings['prefixes'][message.guild.id] return u.settings['prefixes'][message.guild.id]
return u.config['prefix'] return u.config['prefix']
bot = commands.Bot(command_prefix=get_prefix, formatter=commands.HelpFormatter( help_formatter = HelpFormatter(show_check_failure=True)
show_check_failure=True), description='Experimental miscellaneous bot') 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 # Send and print ready message to #testing and console after logon