mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Core] Adds listening and watching games. (#1284)
* Adds listening and watching games. * Remove guild check * Fix typos * Fix more typos.
This commit is contained in:
parent
01e8579215
commit
263e94454c
@ -370,7 +370,31 @@ class Core:
|
|||||||
game = None
|
game = None
|
||||||
await ctx.bot.change_presence(status=status, game=game)
|
await ctx.bot.change_presence(status=status, game=game)
|
||||||
await ctx.send(_("Game set."))
|
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()
|
@_set.command()
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user