mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 08:52:31 -05:00
Support [botname] substitutions in cog install messages too (#6491)
This commit is contained in:
@@ -936,7 +936,11 @@ class Downloader(commands.Cog):
|
||||
await self.send_pagified(ctx, f"{message}{deprecation_notice}\n---")
|
||||
for cog in installed_cogs:
|
||||
if cog.install_msg:
|
||||
await ctx.send(cog.install_msg.replace("[p]", ctx.clean_prefix))
|
||||
await ctx.send(
|
||||
cog.install_msg.replace("[p]", ctx.clean_prefix).replace(
|
||||
"[botname]", ctx.me.display_name
|
||||
)
|
||||
)
|
||||
|
||||
@cog.command(name="uninstall", require_var_positional=True)
|
||||
async def _cog_uninstall(self, ctx: commands.Context, *cogs: InstalledCog) -> None:
|
||||
|
||||
Reference in New Issue
Block a user