mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Downloader] Support [botname] substitutions in cog install messages (#6443)
This commit is contained in:
parent
f3c89ad8bd
commit
d304da7a16
@ -608,7 +608,11 @@ class Downloader(commands.Cog):
|
|||||||
else:
|
else:
|
||||||
await ctx.send(_("Repo `{name}` successfully added.").format(name=name))
|
await ctx.send(_("Repo `{name}` successfully added.").format(name=name))
|
||||||
if repo.install_msg:
|
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)
|
@repo.command(name="delete", aliases=["remove", "del"], require_var_positional=True)
|
||||||
async def _repo_del(self, ctx: commands.Context, *repos: Repo) -> None:
|
async def _repo_del(self, ctx: commands.Context, *repos: Repo) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user