mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
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:
parent
5e9b3d9190
commit
3498f8ccb6
1
changelog.d/audio/2905.enhance.rst
Normal file
1
changelog.d/audio/2905.enhance.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remove commas for explanations about how to set API keys.
|
||||||
1
changelog.d/image/2905.enhance.2.rst
Normal file
1
changelog.d/image/2905.enhance.2.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Updated the giphycreds command to match the formatting of the other API commands.
|
||||||
1
changelog.d/image/2905.enhance.rst
Normal file
1
changelog.d/image/2905.enhance.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remove commas for explanations about how to set API keys.
|
||||||
1
changelog.d/streams/2905.enhance.rst
Normal file
1
changelog.d/streams/2905.enhance.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remove commas for explanations about how to set API keys.
|
||||||
@ -654,8 +654,8 @@ class Audio(commands.Cog):
|
|||||||
'4. When asked if you\'re developing commercial integration select "No".\n'
|
'4. When asked if you\'re developing commercial integration select "No".\n'
|
||||||
"5. Accept the terms and conditions.\n"
|
"5. Accept the terms and conditions.\n"
|
||||||
"6. Copy your client ID and your client secret into:\n"
|
"6. Copy your client ID and your client secret into:\n"
|
||||||
"`{prefix}set api spotify client_id,<your_client_id_here> "
|
"`{prefix}set api spotify client_id <your_client_id_here> "
|
||||||
"client_secret,<your_client_secret_here>`"
|
"client_secret <your_client_secret_here>`"
|
||||||
).format(prefix=ctx.prefix)
|
).format(prefix=ctx.prefix)
|
||||||
await ctx.maybe_send_embed(message)
|
await ctx.maybe_send_embed(message)
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ class Audio(commands.Cog):
|
|||||||
"6. Click on Create Credential at the top.\n"
|
"6. Click on Create Credential at the top.\n"
|
||||||
'7. At the top click the link for "API key".\n'
|
'7. At the top click the link for "API key".\n'
|
||||||
"8. No application restrictions are needed. Click Create at the bottom.\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)
|
).format(prefix=ctx.prefix)
|
||||||
await ctx.maybe_send_embed(message)
|
await ctx.maybe_send_embed(message)
|
||||||
|
|
||||||
|
|||||||
@ -149,7 +149,7 @@ class Image(commands.Cog):
|
|||||||
"7. Enter a valid email address and a description.\n"
|
"7. Enter a valid email address and a description.\n"
|
||||||
"8. Check the captcha box and click next.\n"
|
"8. Check the captcha box and click next.\n"
|
||||||
"9. Your Client ID will be on the next page.\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)
|
).format(prefix=ctx.prefix)
|
||||||
|
|
||||||
await ctx.maybe_send_embed(message)
|
await ctx.maybe_send_embed(message)
|
||||||
@ -223,17 +223,17 @@ class Image(commands.Cog):
|
|||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def giphycreds(self, ctx):
|
async def giphycreds(self, ctx):
|
||||||
"""Explain how to set Giphy API tokens"""
|
"""Explain how to set Giphy API tokens."""
|
||||||
|
|
||||||
message = _(
|
message = _(
|
||||||
"To get a Giphy API Key:\n"
|
"To get a Giphy API Key:\n"
|
||||||
"1. Login to a Giphy account.\n"
|
"1. Login to a Giphy account.\n"
|
||||||
"2. Visit [this](https://developers.giphy.com/dashboard) page\n"
|
"2. Visit this page https://developers.giphy.com/dashboard.\n"
|
||||||
"3. Press `Create an App`\n"
|
"3. Press *Create an App*.\n"
|
||||||
"4. Write an app name, example: `Red Bot`\n"
|
"4. Write an app name, example: *Red Bot*.\n"
|
||||||
"5. Write an 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. Run the command `{prefix}set api GIPHY api_key <your_api_key_here>`.\n"
|
||||||
).format(prefix=ctx.prefix)
|
).format(prefix=ctx.prefix)
|
||||||
|
|
||||||
await ctx.maybe_send_embed(message)
|
await ctx.maybe_send_embed(message)
|
||||||
|
|||||||
@ -328,7 +328,7 @@ class Streams(commands.Cog):
|
|||||||
"select an Application Category of your choosing.\n"
|
"select an Application Category of your choosing.\n"
|
||||||
"4. Click *Register*.\n"
|
"4. Click *Register*.\n"
|
||||||
"5. On the following page, copy the Client ID.\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"
|
"Note: These tokens are sensitive and should only be used in a private channel\n"
|
||||||
"or in DM with the bot.\n"
|
"or in DM with the bot.\n"
|
||||||
).format(prefix=ctx.prefix)
|
).format(prefix=ctx.prefix)
|
||||||
@ -349,7 +349,7 @@ class Streams(commands.Cog):
|
|||||||
"3. Set up your API key \n"
|
"3. Set up your API key \n"
|
||||||
"(see https://support.google.com/googleapi/answer/6158862 for instructions)\n"
|
"(see https://support.google.com/googleapi/answer/6158862 for instructions)\n"
|
||||||
"4. Copy your API key and run the command "
|
"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"
|
"Note: These tokens are sensitive and should only be used in a private channel\n"
|
||||||
"or in DM with the bot.\n"
|
"or in DM with the bot.\n"
|
||||||
).format(prefix=ctx.prefix)
|
).format(prefix=ctx.prefix)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user