mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
set activity statuses docstrings
This commit is contained in:
@@ -2083,7 +2083,18 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
@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):
|
||||||
"""Sets [botname]'s playing status."""
|
"""Sets [botname]'s playing status.
|
||||||
|
|
||||||
|
Maximum length for a playing status is 128 characters.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
- `[p]set playing` - Clears the activity status.
|
||||||
|
- `[p]set playing the keyboard`
|
||||||
|
|
||||||
|
**Arguments:**
|
||||||
|
|
||||||
|
- `[game]` The text to follow `playing`. Leave blank to clear the current activity status.
|
||||||
|
"""
|
||||||
|
|
||||||
if game:
|
if game:
|
||||||
if len(game) > 128:
|
if len(game) > 128:
|
||||||
@@ -2103,7 +2114,17 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
@checks.bot_in_a_guild()
|
@checks.bot_in_a_guild()
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def _listening(self, ctx: commands.Context, *, listening: str = None):
|
async def _listening(self, ctx: commands.Context, *, listening: str = None):
|
||||||
"""Sets [botname]'s listening status."""
|
"""Sets [botname]'s listening status.
|
||||||
|
|
||||||
|
Maximum length for a listening status is 128 characters.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
- `[p]set playing` - Clears the activity status.
|
||||||
|
- `[p]set playing the keyboard`
|
||||||
|
|
||||||
|
**Arguments:**
|
||||||
|
|
||||||
|
- `[game]` The text to follow `playing`. Leave blank to clear the current activity status."""
|
||||||
|
|
||||||
status = ctx.bot.guilds[0].me.status if len(ctx.bot.guilds) > 0 else discord.Status.online
|
status = ctx.bot.guilds[0].me.status if len(ctx.bot.guilds) > 0 else discord.Status.online
|
||||||
if listening:
|
if listening:
|
||||||
|
|||||||
Reference in New Issue
Block a user