diff --git a/.gitignore b/.gitignore index 3cae99b..f8c3f87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +token # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/bot.py b/bot.py index d5b48f5..2bd95c5 100755 --- a/bot.py +++ b/bot.py @@ -87,7 +87,8 @@ async def magie(): def main(): """ entry point """ - BOT.run(os.environ['SCHNEIDERBOT_TOKEN']) + token = open("token").read() + BOT.run(token.strip()) if __name__ == '__main__': main()