From 3498f8ccb671ef67527c5edaf54e3b8c0453e708 Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Sun, 18 Aug 2019 01:50:48 +0200 Subject: [PATCH] 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. --- changelog.d/audio/2905.enhance.rst | 1 + changelog.d/image/2905.enhance.2.rst | 1 + changelog.d/image/2905.enhance.rst | 1 + changelog.d/streams/2905.enhance.rst | 1 + redbot/cogs/audio/audio.py | 6 +++--- redbot/cogs/image/image.py | 14 +++++++------- redbot/cogs/streams/streams.py | 4 ++-- 7 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 changelog.d/audio/2905.enhance.rst create mode 100644 changelog.d/image/2905.enhance.2.rst create mode 100644 changelog.d/image/2905.enhance.rst create mode 100644 changelog.d/streams/2905.enhance.rst diff --git a/changelog.d/audio/2905.enhance.rst b/changelog.d/audio/2905.enhance.rst new file mode 100644 index 000000000..98ce114c8 --- /dev/null +++ b/changelog.d/audio/2905.enhance.rst @@ -0,0 +1 @@ +Remove commas for explanations about how to set API keys. diff --git a/changelog.d/image/2905.enhance.2.rst b/changelog.d/image/2905.enhance.2.rst new file mode 100644 index 000000000..f26d2f70c --- /dev/null +++ b/changelog.d/image/2905.enhance.2.rst @@ -0,0 +1 @@ +Updated the giphycreds command to match the formatting of the other API commands. diff --git a/changelog.d/image/2905.enhance.rst b/changelog.d/image/2905.enhance.rst new file mode 100644 index 000000000..98ce114c8 --- /dev/null +++ b/changelog.d/image/2905.enhance.rst @@ -0,0 +1 @@ +Remove commas for explanations about how to set API keys. diff --git a/changelog.d/streams/2905.enhance.rst b/changelog.d/streams/2905.enhance.rst new file mode 100644 index 000000000..98ce114c8 --- /dev/null +++ b/changelog.d/streams/2905.enhance.rst @@ -0,0 +1 @@ +Remove commas for explanations about how to set API keys. diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 59a8ce059..bbebdbe62 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -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, " - "client_secret,`" + "`{prefix}set api spotify client_id " + "client_secret `" ).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,`" + "9. You now have a key to add to `{prefix}set api youtube api_key `" ).format(prefix=ctx.prefix) await ctx.maybe_send_embed(message) diff --git a/redbot/cogs/image/image.py b/redbot/cogs/image/image.py index 7c672bdff..aa51c01d7 100644 --- a/redbot/cogs/image/image.py +++ b/redbot/cogs/image/image.py @@ -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,`.\n" + "10. Run the command `{prefix}set api imgur client_id `.\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 `.\n" ).format(prefix=ctx.prefix) await ctx.maybe_send_embed(message) diff --git a/redbot/cogs/streams/streams.py b/redbot/cogs/streams/streams.py index cfb591c95..56d20ebd3 100644 --- a/redbot/cogs/streams/streams.py +++ b/redbot/cogs/streams/streams.py @@ -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,`\n\n" + "6. Run the command `{prefix}set api twitch client_id `\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,`\n\n" + "`{prefix}set api youtube api_key `\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)