Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace [p] with clean prefix in install messages #3592

Merged
merged 1 commit into from
Feb 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redbot/cogs/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ 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.prefix))
await ctx.send(repo.install_msg.replace("[p]", ctx.clean_prefix))

@repo.command(name="delete", aliases=["remove", "del"], usage="<repo_name>")
async def _repo_del(self, ctx: commands.Context, repo: Repo) -> None:
Expand Down Expand Up @@ -754,7 +754,7 @@ 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.prefix))
await ctx.send(cog.install_msg.replace("[p]", ctx.clean_prefix))

@cog.command(name="uninstall", usage="<cogs>")
async def _cog_uninstall(self, ctx: commands.Context, *cogs: InstalledCog) -> None:
Expand Down