1
0
Fork 0
mirror of synced 2024-05-20 12:32:26 +12:00

Corrected an issue with changing the status/name

This commit is contained in:
phxntxm 2017-03-08 13:25:52 -06:00
parent 16aaf3f01b
commit d43c854584

View file

@ -73,17 +73,17 @@ class Owner:
@commands.command()
@commands.check(utils.is_owner)
async def name(self, ctx, newNick: str):
async def name(self, ctx, new_nick: str):
"""Changes the bot's name"""
await self.bot.edit_profile(username=newNick)
await ctx.send('Changed username to ' + newNick)
await self.bot.user.edit(username=new_nick)
await ctx.send('Changed username to ' + new_nick)
@commands.command()
@commands.check(utils.is_owner)
async def status(self, ctx, *, status: str):
"""Changes the bot's 'playing' status"""
await self.bot.change_status(discord.Game(name=status, type=0))
await ctx.send("Just changed my status to '{0}'!".format(status))
await self.bot.change_presence(game=discord.Game(name=status, type=0))
await ctx.send("Just changed my status to '{}'!".format(status))
@commands.command()
@commands.check(utils.is_owner)