Strip whitespace from token

This commit is contained in:
Mark Hoekveen
2018-07-01 18:56:18 +02:00
parent c2b7cf7338
commit dcee7ee98d
+2 -2
View File
@@ -23,10 +23,10 @@ bot.add_cog(Cryptocoin.Cryptocoin(bot))
bot.add_cog(Chatbot.Chatbot(bot)) bot.add_cog(Chatbot.Chatbot(bot))
tokenfile = open("stroopwafel.token","r") tokenfile = open("stroopwafel.token","r")
token = tokenfile.readline() token = tokenfile.readline().strip()
@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(token) bot.run(token)