From 9e4bcd3df7c6139d2e56d6cc7e19efdcb2ae082f Mon Sep 17 00:00:00 2001 From: Aman Kumar <72304680+Aman-14@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:01:58 +0530 Subject: [PATCH] Fix some typos in custom_context example Also adds PyNaCl PyPI link in README --- README.rst | 2 +- examples/custom_context.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index bde42ed47..3b98f5999 100644 --- a/README.rst +++ b/README.rst @@ -59,7 +59,7 @@ To install the development version, do the following: Optional Packages ~~~~~~~~~~~~~~~~~~ -* PyNaCl (for voice support) +* `PyNaCl `__ (for voice support) Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. ``apt``, ``dnf``, etc) before running the above commands: diff --git a/examples/custom_context.py b/examples/custom_context.py index bc2a174db..d3a5b94b1 100644 --- a/examples/custom_context.py +++ b/examples/custom_context.py @@ -16,8 +16,8 @@ class MyContext(commands.Context): await self.message.add_reaction(emoji) except discord.HTTPException: # sometimes errors occur during this, for example - # maybe you dont have permission to do that - # we dont mind, so we can just ignore them + # maybe you don't have permission to do that + # we don't mind, so we can just ignore them pass @@ -39,13 +39,13 @@ async def guess(ctx, number: int): value = random.randint(1, 6) # with your new helper function, you can add a # green check mark if the guess was correct, - # or a red cross mark if it wasnt + # or a red cross mark if it wasn't await ctx.tick(number == value) -# important: you shouldnt hard code your token +# IMPORTANT: You shouldn't hard code your token # these are very important, and leaking them can # let people do very malicious things with your -# bot. try to use a file or something to keep -# them private, and dont commit it to GitHub +# bot. Try to use a file or something to keep +# them private, and don't commit it to GitHub token = "your token here" bot.run(token)