1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +00:00

Changed to use intrinsic boolean value of None types

This commit is contained in:
Myned 2017-11-20 06:05:08 -05:00
parent 02edb24d86
commit 490cb68dae

View file

@ -71,8 +71,8 @@ class Bot:
@commands.command(name=',status', aliases=[',presence', ',game'], hidden=True)
@commands.is_owner()
async def status(self, ctx, *, game=None):
if game is not None:
async def change_status(self, ctx, *, game=None):
if game:
await self.bot.change_presence(game=d.Game(name=game))
u.config['playing'] = game
u.dump(u.config, 'config.json', json=True)