From 263e94454cdc632b81d53f3512d9d2e4ca93a292 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 14 Feb 2018 20:55:18 -0500 Subject: [PATCH] [V3 Core] Adds listening and watching games. (#1284) * Adds listening and watching games. * Remove guild check * Fix typos * Fix more typos. --- redbot/core/core_commands.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 7df64d61b..829353c97 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -370,7 +370,31 @@ class Core: game = None await ctx.bot.change_presence(status=status, game=game) await ctx.send(_("Game set.")) - + + @_set.command(name="listening") + @checks.is_owner() + async def _listening(self, ctx, *, listening: str=None): + """Sets Red's listening status""" + status = ctx.me.status + if listening: + listening = discord.Game(name=listening, type=2) + else: + listening = None + await ctx.bot.change_presence(status=status, game=listening) + await ctx.send(_("Listening set.")) + + @_set.command(name="watching") + @checks.is_owner() + async def _watching(self, ctx, *, watching: str=None): + """Sets Red's watching status""" + status = ctx.me.status + if watching: + watching = discord.Game(name=watching, type=3) + else: + watching = None + await ctx.bot.change_presence(status=status, game=watching) + await ctx.send(_("Watching set.")) + @_set.command() @checks.is_owner() @commands.guild_only()