Update default prefix to use env variable
This commit is contained in:
parent
65b3e1b3b6
commit
c5e6ec3761
@ -72,7 +72,7 @@ logger.info('Imports Complete')
|
||||
|
||||
class Geeksbot(commands.Bot):
|
||||
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
|
||||
self.description = "Geeksbot v2"
|
||||
kwargs['description'] = self.description
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user