mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Changed to use intrinsic boolean value of None types
This commit is contained in:
parent
02edb24d86
commit
490cb68dae
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ class Bot:
|
||||||
|
|
||||||
@commands.command(name=',status', aliases=[',presence', ',game'], hidden=True)
|
@commands.command(name=',status', aliases=[',presence', ',game'], hidden=True)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def status(self, ctx, *, game=None):
|
async def change_status(self, ctx, *, game=None):
|
||||||
if game is not None:
|
if game:
|
||||||
await self.bot.change_presence(game=d.Game(name=game))
|
await self.bot.change_presence(game=d.Game(name=game))
|
||||||
u.config['playing'] = game
|
u.config['playing'] = game
|
||||||
u.dump(u.config, 'config.json', json=True)
|
u.dump(u.config, 'config.json', json=True)
|
||||||
|
|
Loading…
Reference in a new issue