mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Core] allow set game to unset the game (#1146)
This commit is contained in:
parent
d8bb18c07d
commit
878d10a1e2
@ -313,10 +313,13 @@ class Core:
|
||||
@_set.command(name="game")
|
||||
@checks.is_owner()
|
||||
@commands.guild_only()
|
||||
async def _game(self, ctx, *, game: str):
|
||||
async def _game(self, ctx, *, game: str=None):
|
||||
"""Sets Red's playing status"""
|
||||
status = ctx.me.status
|
||||
if game:
|
||||
game = discord.Game(name=game)
|
||||
else:
|
||||
game = None
|
||||
await ctx.bot.change_presence(status=status, game=game)
|
||||
await ctx.send(_("Game set."))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user