fix: use clean prefix in code blocks (#3591)

This commit is contained in:
jack1142
2020-02-28 21:23:13 +01:00
committed by GitHub
parent 7b042be9db
commit eedec4ff02
12 changed files with 42 additions and 38 deletions

View File

@@ -54,7 +54,7 @@ class Image(commands.Cog):
await ctx.send(
_(
"A Client ID has not been set! Please set one with `{prefix}imgurcreds`."
).format(prefix=ctx.prefix)
).format(prefix=ctx.clean_prefix)
)
return
headers = {"Authorization": "Client-ID {}".format(imgur_client_id)}
@@ -107,7 +107,7 @@ class Image(commands.Cog):
await ctx.send(
_(
"A Client ID has not been set! Please set one with `{prefix}imgurcreds`."
).format(prefix=ctx.prefix)
).format(prefix=ctx.clean_prefix)
)
return
@@ -151,7 +151,7 @@ class Image(commands.Cog):
"8. Check the captcha box and click next.\n"
"9. Your Client ID will be on the next page.\n"
"10. Run the command `{prefix}set api imgur client_id <your_client_id_here>`.\n"
).format(prefix=ctx.prefix)
).format(prefix=ctx.clean_prefix)
await ctx.maybe_send_embed(message)
@@ -169,7 +169,7 @@ class Image(commands.Cog):
if not giphy_api_key:
await ctx.send(
_("An API key has not been set! Please set one with `{prefix}giphycreds`.").format(
prefix=ctx.prefix
prefix=ctx.clean_prefix
)
)
return
@@ -202,7 +202,7 @@ class Image(commands.Cog):
if not giphy_api_key:
await ctx.send(
_("An API key has not been set! Please set one with `{prefix}giphycreds`.").format(
prefix=ctx.prefix
prefix=ctx.clean_prefix
)
)
return
@@ -235,6 +235,6 @@ class Image(commands.Cog):
"5. Write an app description, example: *Used for Red Bot*.\n"
"6. Copy the API key shown.\n"
"7. Run the command `{prefix}set api GIPHY api_key <your_api_key_here>`.\n"
).format(prefix=ctx.prefix)
).format(prefix=ctx.clean_prefix)
await ctx.maybe_send_embed(message)