Default status now controlled by config again

doc_update
Joey Hines 2018-08-30 12:31:15 -05:00
parent 0d26818fa6
commit 975648a926
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ class GeoffreyBot(commands.Bot):
self.admin_users = config.bot_mod self.admin_users = config.bot_mod
self.special_users = config.special_name_list self.special_users = config.special_name_list
self.bot_commands = Commands(config) self.bot_commands = Commands(config)
self.default_status = config.status
for extension in extensions: for extension in extensions:
try: try:
@ -58,7 +59,7 @@ class GeoffreyBot(commands.Bot):
info = await self.application_info() info = await self.application_info()
url = oauth_url(info.id) url = oauth_url(info.id)
logger.info("Bot url: %s", url) logger.info("Bot url: %s", url)
await self.change_presence(game=Game(name="Geoffrey")) await self.change_presence(game=Game(name=self.default_status))
async def on_command(self, command, ctx): async def on_command(self, command, ctx):
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None: