Use bot name instead of "Red" in [p]info and [p]restart (#4470)

This commit is contained in:
aikaterna 2020-10-11 08:21:54 -07:00 committed by GitHub
parent 804219df29
commit 5c00810166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
@commands.command() @commands.command()
async def info(self, ctx: commands.Context): async def info(self, ctx: commands.Context):
"""Shows info about Red.""" """Shows info about [botname]."""
embed_links = await ctx.embed_requested() embed_links = await ctx.embed_requested()
author_repo = "https://github.com/Twentysix26" author_repo = "https://github.com/Twentysix26"
org_repo = "https://github.com/Cog-Creators" org_repo = "https://github.com/Cog-Creators"
@ -1537,9 +1537,9 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
@commands.command(name="restart") @commands.command(name="restart")
@checks.is_owner() @checks.is_owner()
async def _restart(self, ctx: commands.Context, silently: bool = False): async def _restart(self, ctx: commands.Context, silently: bool = False):
"""Attempts to restart Red. """Attempts to restart [botname].
Makes Red quit with exit code 26. Makes [botname] quit with exit code 26.
The restart is not guaranteed: it must be dealt The restart is not guaranteed: it must be dealt
with by the process manager in use.""" with by the process manager in use."""
with contextlib.suppress(discord.HTTPException): with contextlib.suppress(discord.HTTPException):