Browse Source

Add token to gitignore

master
Marcel Schneider 3 years ago
parent
commit
a7d3cac8af
  1. 1
      .gitignore
  2. 3
      bot.py

1
.gitignore

@ -1,3 +1,4 @@
token
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

3
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()
Loading…
Cancel
Save