New change_presence use
This commit is contained in:
parent
d7b9e04742
commit
715274e99e
2
bot.py
2
bot.py
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue