1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Read the token from discordtoken.txt

This commit is contained in:
Steffo 2016-08-12 16:01:05 +02:00
parent 6d503a0488
commit 2b5e35c5c7
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View file

@ -138,3 +138,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
.idea/
discordtoken.txt

View file

@ -10,4 +10,9 @@ async def on_ready():
print(client.user.name)
print(client.user.id)
client.run("token")
# Get the discord bot token from "discordtoken.txt"
f = open("discordtoken.txt", "r")
token = f.read()
f.close()
client.run(token)