Merge pull request #4 from Etzelia/patch-3

Updates to change_presence
doc_update
Joey Hines 2018-08-29 11:26:30 -05:00 committed by GitHub
commit 143508c5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ async def on_ready():
info = await bot.application_info() info = await bot.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 bot.change_presence(game=Game(name=bot_config.status)) await bot.change_presence(activity=Game(bot_config.status))
@bot.event @bot.event

View File

@ -122,7 +122,7 @@ class Admin_Commands:
""" """
Updates "playing [game]" status of the bot. Updates "playing [game]" status of the bot.
""" """
await self.bot.change_presence(game=Game(name=status)) await self.bot.change_presence(activity=Game(status))
await self.bot.say('{}, status has been changed'.format(ctx.message.author.mention)) await self.bot.say('{}, status has been changed'.format(ctx.message.author.mention))