From b7a638309d6ce73c9ac4f54b8eed87caa60b8bf3 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 30 Nov 2017 20:38:23 +0100 Subject: [PATCH] moved bot token to file --- .gitignore | 3 ++- Stroopwafel.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 356e9ba..6b3cb47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__/ discord.py-rewrite/ test.png -password.txt \ No newline at end of file +password.txt +stroopwafel.token \ No newline at end of file diff --git a/Stroopwafel.py b/Stroopwafel.py index 3878f6d..a50ea87 100644 --- a/Stroopwafel.py +++ b/Stroopwafel.py @@ -18,9 +18,11 @@ bot.add_cog(Shitpost.Shitpost(bot)) bot.add_cog(Porno.Porno(bot)) bot.add_cog(General.General(bot)) +tokenfile = open("stroopwafel.token","r") +token = tokenfile.readline() @bot.event @asyncio.coroutine def on_ready(): print('Logged in as:\n{0} (ID: {0.id})'.format(bot.user)) -bot.run('MjczODc1ODM1NzIxNzQ0Mzg1.C2p7EA._tTMtYEsaUuTv_RtOifGhNX9QZ4') \ No newline at end of file +bot.run(token) \ No newline at end of file