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:
parent
6d503a0488
commit
2b5e35c5c7
2 changed files with 7 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -138,3 +138,4 @@ $RECYCLE.BIN/
|
|||
# Windows shortcuts
|
||||
*.lnk
|
||||
.idea/
|
||||
discordtoken.txt
|
||||
|
|
7
main.py
7
main.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue