diff --git a/.gitignore b/.gitignore index b35bf9e0..3efbd1ab 100644 --- a/.gitignore +++ b/.gitignore @@ -138,3 +138,4 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk .idea/ +discordtoken.txt diff --git a/main.py b/main.py index 332a5792..bcd0de1d 100644 --- a/main.py +++ b/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)