[Image] Fix some issues in strings (#2737)

This commit is contained in:
DiscordLiz 2019-05-28 02:47:44 -04:00 committed by Michael H
parent 2338ad8223
commit 242df83785

View File

@ -167,7 +167,7 @@ class Image(commands.Cog):
giphy_api_key = await ctx.bot.db.api_tokens.get_raw("GIPHY", default=None) giphy_api_key = await ctx.bot.db.api_tokens.get_raw("GIPHY", default=None)
if not giphy_api_key: if not giphy_api_key:
await ctx.send( await ctx.send(
_("A API key has not been set! Please set one with `{prefix}giphycreds`.").format( _("An API key has not been set! Please set one with `{prefix}giphycreds`.").format(
prefix=ctx.prefix prefix=ctx.prefix
) )
) )
@ -200,7 +200,7 @@ class Image(commands.Cog):
giphy_api_key = await ctx.bot.db.api_tokens.get_raw("GIPHY", default=None) giphy_api_key = await ctx.bot.db.api_tokens.get_raw("GIPHY", default=None)
if not giphy_api_key: if not giphy_api_key:
await ctx.send( await ctx.send(
_("A API key has not been set! Please set one with `{prefix}giphycreds`.").format( _("An API key has not been set! Please set one with `{prefix}giphycreds`.").format(
prefix=ctx.prefix prefix=ctx.prefix
) )
) )
@ -226,12 +226,12 @@ class Image(commands.Cog):
"""Explain how to set Giphy API tokens""" """Explain how to set Giphy API tokens"""
message = _( message = _(
"To get an Giphyr API Key:\n" "To get a Giphy API Key:\n"
"1. Login to an Giphy account.\n" "1. Login to a Giphy account.\n"
"2. Visit [this](https://developers.giphy.com/dashboard) page\n" "2. Visit [this](https://developers.giphy.com/dashboard) page\n"
"3. Press `Create an App`\n" "3. Press `Create an App`\n"
"4. Write a app name, example: `Red Bot`\n" "4. Write an app name, example: `Red Bot`\n"
"5. Write a app description, example: `Used for Red Bot`\n" "5. Write an app description, example: `Used for Red Bot`\n"
"6. Copy the API key shown.\n" "6. Copy the API key shown.\n"
"7. Do `{prefix}set api GIPHY api_key,your_api_key`\n" "7. Do `{prefix}set api GIPHY api_key,your_api_key`\n"
).format(prefix=ctx.prefix) ).format(prefix=ctx.prefix)