mirror of
https://github.com/myned/modufur.git
synced 2024-12-23 22:27:27 +00:00
Added change log to game command
This commit is contained in:
parent
490cb68dae
commit
7575875f88
1 changed files with 2 additions and 0 deletions
|
@ -76,10 +76,12 @@ class Bot:
|
||||||
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)
|
||||||
|
await ctx.send(f'**Game changed to** `{game}`')
|
||||||
else:
|
else:
|
||||||
await self.bot.change_presence(game=None)
|
await self.bot.change_presence(game=None)
|
||||||
u.config['playing'] = 'None'
|
u.config['playing'] = 'None'
|
||||||
u.dump(u.config, 'config.json', json=True)
|
u.dump(u.config, 'config.json', json=True)
|
||||||
|
await ctx.send('**Game changed to** ` `')
|
||||||
|
|
||||||
|
|
||||||
class Tools:
|
class Tools:
|
||||||
|
|
Loading…
Reference in a new issue