aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shom770 <[email protected]>2022-03-21 18:42:04 -0400
committerGravatar Shom770 <[email protected]>2022-03-21 18:42:04 -0400
commitcf8ce93e34ab543fdc9e4df83aa4583128c2ddc0 (patch)
tree8c9a4bdd6af02224aa2ec4aaf1f943beddeebb46
parentMerge #663 - bumped threads endpoint (diff)
add token safety pin
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md21
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/token-reset.pngbin0 -> 132625 bytes
2 files changed, 21 insertions, 0 deletions
diff --git a/pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md b/pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md
new file mode 100644
index 00000000..8e283d70
--- /dev/null
+++ b/pydis_site/apps/content/resources/guides/python-guides/keeping-tokens-safe.md
@@ -0,0 +1,21 @@
+---
+title: Keeping Discord Bot Tokens Safe
+description: How to keep your bot tokens safe and safety measures you can take.
+---
+It's **very** important to keep a bot token safe, primarily because anyone who has the bot token can do whatever they want with the bot -- such as destroying servers your bot has been added to and getting your bot banned from the API.
+
+# How to Avoid Leaking your Token
+To help prevent leaking your token, you should ensure that you don't upload it to an open source program/website, such as replit and github, as they show your code publicly. The best practice for storing tokens is generally utilising .env files ([click here](https://vcokltfre.dev/tips/tokens/.) for more information on storing tokens safely)
+
+# What should I do if my token does get leaked?
+
+If for whatever reason your token gets leaked, you should immediately follow these steps:
+- Go to the list of [Discord Bot Applications](https://discord.com/developers/applications) you have and select the bot application that had the token leaked.
+- Select the Bot (1) tab on the left-hand side, next to a small image of a puzzle piece. After doing so you should see a small section named TOKEN (under your bot USERNAME and next to his avatar image)
+- Press the Regenerate (2) option to regen your bot token.
+![token_reset.png](token-reset.png)
+
+Following these steps will create a new token for your bot, making it secure again and terminating any connections from the leaked token.
+
+# Summary
+Make sure you keep your token secure by storing it safely, not sending it to anyone you don't trust, and regenerating your token if it does get leaked. \ No newline at end of file
diff --git a/pydis_site/apps/content/resources/guides/python-guides/token-reset.png b/pydis_site/apps/content/resources/guides/python-guides/token-reset.png
new file mode 100644
index 00000000..bd672b93
--- /dev/null
+++ b/pydis_site/apps/content/resources/guides/python-guides/token-reset.png
Binary files differ