aboutsummaryrefslogtreecommitdiff
path: root/examples/custom_context.py
diff options
context:
space:
mode:
authorAman Kumar <[email protected]>2021-06-02 16:01:58 +0530
committerGitHub <[email protected]>2021-06-02 06:31:58 -0400
commit9e4bcd3df7c6139d2e56d6cc7e19efdcb2ae082f (patch)
tree75d0c29dbd289e227b8118d3adc0ea0b94112a10 /examples/custom_context.py
parentFix NameError in missing _EmojiTag import (diff)
downloaddiscord.py-9e4bcd3df7c6139d2e56d6cc7e19efdcb2ae082f.tar.xz
discord.py-9e4bcd3df7c6139d2e56d6cc7e19efdcb2ae082f.zip
Fix some typos in custom_context example
Also adds PyNaCl PyPI link in README
Diffstat (limited to 'examples/custom_context.py')
-rw-r--r--examples/custom_context.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/custom_context.py b/examples/custom_context.py
index bc2a174d..d3a5b94b 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)