Skip to content

Commit

Permalink
[Downloader] Support [botname] substitutions in cog install messages (
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreusada authored Sep 11, 2024
1 parent f3c89ad commit d304da7
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 @@ -608,7 +608,11 @@ async def _repo_add(
else:
await ctx.send(_("Repo `{name}` successfully added.").format(name=name))
if repo.install_msg:
await ctx.send(repo.install_msg.replace("[p]", ctx.clean_prefix))
await ctx.send(
repo.install_msg.replace("[p]", ctx.clean_prefix).replace(
"[botname]", ctx.me.display_name
)
)

@repo.command(name="delete", aliases=["remove", "del"], require_var_positional=True)
async def _repo_del(self, ctx: commands.Context, *repos: Repo) -> None:
Expand Down

0 comments on commit d304da7

Please sign in to comment.