moved bot token to file

This commit is contained in:
2017-11-30 20:38:23 +01:00
parent 1aac18e3cf
commit b7a638309d
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -2,3 +2,4 @@ __pycache__/
discord.py-rewrite/ discord.py-rewrite/
test.png test.png
password.txt password.txt
stroopwafel.token
+3 -1
View File
@@ -18,9 +18,11 @@ bot.add_cog(Shitpost.Shitpost(bot))
bot.add_cog(Porno.Porno(bot)) bot.add_cog(Porno.Porno(bot))
bot.add_cog(General.General(bot)) bot.add_cog(General.General(bot))
tokenfile = open("stroopwafel.token","r")
token = tokenfile.readline()
@bot.event @bot.event
@asyncio.coroutine @asyncio.coroutine
def on_ready(): def on_ready():
print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user)) print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user))
bot.run('MjczODc1ODM1NzIxNzQ0Mzg1.C2p7EA._tTMtYEsaUuTv_RtOifGhNX9QZ4') bot.run(token)