Update default prefix to use env variable

This commit is contained in:
Dustin Pianalto 2019-12-12 14:59:55 -09:00
parent 65b3e1b3b6
commit c5e6ec3761

View File

@ -72,7 +72,7 @@ logger.info('Imports Complete')
class Geeksbot(commands.Bot): class Geeksbot(commands.Bot):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self.default_prefix = os.environ('DISCORD_DEFAULT_PREFIX') or 'g$' self.default_prefix = os.environ.get('DISCORD_DEFAULT_PREFIX', 'g$')
kwargs['command_prefix'] = self.default_prefix kwargs['command_prefix'] = self.default_prefix
self.description = "Geeksbot v2" self.description = "Geeksbot v2"
kwargs['description'] = self.description kwargs['description'] = self.description