mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-10 05:08:55 -05:00
Use bot name instead of "Red" in [p]info and [p]restart (#4470)
This commit is contained in:
parent
804219df29
commit
5c00810166
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user