1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 06:37:29 +00:00

Compressed get_prefix referencing

This commit is contained in:
Myned 2017-11-20 05:58:40 -05:00
parent fe5fa3c518
commit bcc1273fbe

View file

@ -54,9 +54,7 @@ log.basicConfig(level=log.WARNING)
def get_prefix(bot, message): def get_prefix(bot, message):
if isinstance(message.guild, d.Guild) and message.guild.id in u.settings['prefixes']: return u.settings['prefixes'].get(message.guild.id, u.config['prefix'])
return u.settings['prefixes'][message.guild.id]
return u.config['prefix']
help_formatter = HelpFormatter(show_check_failure=True) help_formatter = HelpFormatter(show_check_failure=True)