Strip whitespace from token
This commit is contained in:
+2
-2
@@ -23,10 +23,10 @@ bot.add_cog(Cryptocoin.Cryptocoin(bot))
|
||||
bot.add_cog(Chatbot.Chatbot(bot))
|
||||
|
||||
tokenfile = open("stroopwafel.token","r")
|
||||
token = tokenfile.readline()
|
||||
token = tokenfile.readline().strip()
|
||||
@bot.event
|
||||
@asyncio.coroutine
|
||||
def on_ready():
|
||||
print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user))
|
||||
|
||||
bot.run(token)
|
||||
bot.run(token)
|
||||
|
||||
Reference in New Issue
Block a user