commit 4bf4b66ebccdb2a21bbac811e8748dd35b220a3b Author: TheTechRobo <52163910+TheTechRobo@users.noreply.github.com> Date: Sat Jun 5 10:43:39 2021 -0400 add basic stuff 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