[Core] Unify commands that set bot's activity status (#3646)

* alias [p]set game

* Implement suggestions
This commit is contained in:
Dav 2020-03-12 21:46:19 +00:00 committed by GitHub
parent 2e5dc82692
commit 4d81887bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1073,7 +1073,7 @@ class Core(commands.Cog, CoreLogic):
else: else:
await ctx.send(_("Done.")) await ctx.send(_("Done."))
@_set.command(name="game") @_set.command(name="playing", aliases=["game"])
@checks.bot_in_a_guild() @checks.bot_in_a_guild()
@checks.is_owner() @checks.is_owner()
async def _game(self, ctx: commands.Context, *, game: str = None): async def _game(self, ctx: commands.Context, *, game: str = None):
@ -1158,7 +1158,7 @@ class Core(commands.Cog, CoreLogic):
await ctx.bot.change_presence(status=status, activity=game) await ctx.bot.change_presence(status=status, activity=game)
await ctx.send(_("Status changed to {}.").format(status)) await ctx.send(_("Status changed to {}.").format(status))
@_set.command() @_set.command(name="streaming", aliases=["stream"])
@checks.bot_in_a_guild() @checks.bot_in_a_guild()
@checks.is_owner() @checks.is_owner()
async def stream(self, ctx: commands.Context, streamer=None, *, stream_title=None): async def stream(self, ctx: commands.Context, streamer=None, *, stream_title=None):