From 4bf4b66ebccdb2a21bbac811e8748dd35b220a3b Mon Sep 17 00:00:00 2001 From: TheTechRobo <52163910+TheTechRobo@users.noreply.github.com> Date: Sat, 5 Jun 2021 10:43:39 -0400 Subject: [PATCH] add basic stuff --- .gitignore | 2 ++ Token.example.py | 7 +++++++ bot.py | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 Token.example.py create mode 100644 bot.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7406c8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +Token.py diff --git a/Token.example.py b/Token.example.py new file mode 100644 index 0000000..d9d293a --- /dev/null +++ b/Token.example.py @@ -0,0 +1,7 @@ +# After you're finished here, +# rename the file to +# Token.py +# (case sensitive)! + +HYPIXEL_API_KEY = "Hypixel API key goes here (run /api new ingame to get it)" +DISCORD_API_KEY = "Discord bot token goes here" diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..db72147 --- /dev/null +++ b/bot.py @@ -0,0 +1,6 @@ +import discord +try: + from Token import HYPIXEL_API_KEY, DISCORD_API_KEY +except ImportError: + print("\tFATAL!\tCould not load Token.py file. Please change the Token.example.py to your liking and make sure that it is valid Python syntax") + raise