Remove commas for explanations about how to set API keys (#2905)

This removes commas in explanations about how to set API keys in streams, image and audio cogs, since it has been changed in #2692.
This commit is contained in:
PredaaA 2019-08-18 01:50:48 +02:00 committed by Toby Harradine
parent 5e9b3d9190
commit 3498f8ccb6
7 changed files with 16 additions and 12 deletions

View File

@ -0,0 +1 @@
Remove commas for explanations about how to set API keys.

View File

@ -0,0 +1 @@
Updated the giphycreds command to match the formatting of the other API commands.

View File

@ -0,0 +1 @@
Remove commas for explanations about how to set API keys.

View File

@ -0,0 +1 @@
Remove commas for explanations about how to set API keys.

View File

@ -654,8 +654,8 @@ class Audio(commands.Cog):
'4. When asked if you\'re developing commercial integration select "No".\n'
"5. Accept the terms and conditions.\n"
"6. Copy your client ID and your client secret into:\n"
"`{prefix}set api spotify client_id,<your_client_id_here> "
"client_secret,<your_client_secret_here>`"
"`{prefix}set api spotify client_id <your_client_id_here> "
"client_secret <your_client_secret_here>`"
).format(prefix=ctx.prefix)
await ctx.maybe_send_embed(message)
@ -715,7 +715,7 @@ class Audio(commands.Cog):
"6. Click on Create Credential at the top.\n"
'7. At the top click the link for "API key".\n'
"8. No application restrictions are needed. Click Create at the bottom.\n"
"9. You now have a key to add to `{prefix}set api youtube api_key,<your_api_key_here>`"
"9. You now have a key to add to `{prefix}set api youtube api_key <your_api_key_here>`"
).format(prefix=ctx.prefix)
await ctx.maybe_send_embed(message)

View File

@ -149,7 +149,7 @@ class Image(commands.Cog):
"7. Enter a valid email address and a description.\n"
"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"
"10. Run the command `{prefix}set api imgur client_id <your_client_id_here>`.\n"
).format(prefix=ctx.prefix)
await ctx.maybe_send_embed(message)
@ -223,17 +223,17 @@ class Image(commands.Cog):
@checks.is_owner()
@commands.command()
async def giphycreds(self, ctx):
"""Explain how to set Giphy API tokens"""
"""Explain how to set Giphy API tokens."""
message = _(
"To get a Giphy API Key:\n"
"1. Login to a Giphy account.\n"
"2. Visit [this](https://developers.giphy.com/dashboard) page\n"
"3. Press `Create an App`\n"
"4. Write an app name, example: `Red Bot`\n"
"5. Write an app description, example: `Used for Red Bot`\n"
"2. Visit this page https://developers.giphy.com/dashboard.\n"
"3. Press *Create an App*.\n"
"4. Write an app name, example: *Red Bot*.\n"
"5. Write an app description, example: *Used for Red Bot*.\n"
"6. Copy the API key shown.\n"
"7. Do `{prefix}set api GIPHY api_key,your_api_key`\n"
"7. Run the command `{prefix}set api GIPHY api_key <your_api_key_here>`.\n"
).format(prefix=ctx.prefix)
await ctx.maybe_send_embed(message)

View File

@ -328,7 +328,7 @@ class Streams(commands.Cog):
"select an Application Category of your choosing.\n"
"4. Click *Register*.\n"
"5. On the following page, copy the Client ID.\n"
"6. Run the command `{prefix}set api twitch client_id,<your_client_id_here>`\n\n"
"6. Run the command `{prefix}set api twitch client_id <your_client_id_here>`\n\n"
"Note: These tokens are sensitive and should only be used in a private channel\n"
"or in DM with the bot.\n"
).format(prefix=ctx.prefix)
@ -349,7 +349,7 @@ class Streams(commands.Cog):
"3. Set up your API key \n"
"(see https://support.google.com/googleapi/answer/6158862 for instructions)\n"
"4. Copy your API key and run the command "
"`{prefix}set api youtube api_key,<your_api_key_here>`\n\n"
"`{prefix}set api youtube api_key <your_api_key_here>`\n\n"
"Note: These tokens are sensitive and should only be used in a private channel\n"
"or in DM with the bot.\n"
).format(prefix=ctx.prefix)