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:
parent
fe5fa3c518
commit
bcc1273fbe
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue