Skip to content

Commit f0a29e9

Browse files
authored
Support [botname] substitutions in cog install messages too (Cog-Creators#6491)
1 parent d29ae72 commit f0a29e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

redbot/cogs/downloader/downloader.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,11 @@ async def _cog_installrev(
936936
await self.send_pagified(ctx, f"{message}{deprecation_notice}\n---")
937937
for cog in installed_cogs:
938938
if cog.install_msg:
939-
await ctx.send(cog.install_msg.replace("[p]", ctx.clean_prefix))
939+
await ctx.send(
940+
cog.install_msg.replace("[p]", ctx.clean_prefix).replace(
941+
"[botname]", ctx.me.display_name
942+
)
943+
)
940944

941945
@cog.command(name="uninstall", require_var_positional=True)
942946
async def _cog_uninstall(self, ctx: commands.Context, *cogs: InstalledCog) -> None:

0 commit comments

Comments
 (0)