Skip to content

Commit

Permalink
Support [botname] substitutions in cog install messages too (Cog-Crea…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen authored Dec 24, 2024
1 parent d29ae72 commit f0a29e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion redbot/cogs/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,11 @@ async def _cog_installrev(
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:
Expand Down

0 comments on commit f0a29e9

Please sign in to comment.