Update default prefix to use env variable

This commit is contained in:
Dustin Pianalto 2019-12-12 14:53:26 -09:00
parent 79738c6f70
commit 65b3e1b3b6

View File

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