1
0
Fork 0
mirror of synced 2024-05-05 13:12:34 +12:00

New change_presence use

This commit is contained in:
phxntxm 2018-04-24 17:54:01 -05:00
parent d7b9e04742
commit 715274e99e
2 changed files with 2 additions and 2 deletions

2
bot.py
View file

@ -16,7 +16,7 @@ opts = {'command_prefix': utils.command_prefix,
'description': utils.bot_description,
'pm_help': None,
'command_not_found': '',
'game': discord.Game(name=utils.default_status, type=0)}
'game': discord.Activity(name=utils.default_status, type=0)}
bot = commands.AutoShardedBot(**opts)
logging.basicConfig(level=logging.INFO, filename='bonfire.log')

View file

@ -268,7 +268,7 @@ class Owner:
@commands.check(utils.is_owner)
async def status(self, ctx, *, status: str):
"""Changes the bot's 'playing' status"""
await self.bot.change_presence(game=discord.Game(name=status, type=0))
await self.bot.change_presence(activity=discord.Game(name=status, type=0))
await ctx.send("Just changed my status to '{}'!".format(status))
@commands.command()