Prints out key for debug purposes.

This commit is contained in:
Sheldon Lee 2020-09-02 18:20:52 +08:00
parent e75dbb4854
commit 76cf96491b

4
bot.py
View File

@ -57,9 +57,13 @@ class Bot(discord.Client):
elif message.content.startswith("$aquatic"):
await message.channel.send(randomAquatic())
#
# Ensure token on first line, with no whitespaces at the end/beginning
#
token_file = open("token.txt", "r")
token = token_file.readline()
token_file.close()
print("\'"+token+"\'");
bot = Bot()
bot.run(token);