Made token an external file

This commit is contained in:
Nikolaj Danger
2020-03-24 10:58:36 +01:00
parent 9bb95cfa40
commit da0aea540c
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,10 @@ import codecs
import funcs
logging.basicConfig(filename="logfilename.log", level=logging.INFO)
with open("token.txt","r") as f:
token =f.read()
client = discord.Client()
@client.event
@ -167,5 +171,5 @@ async def on_message(message):
await message.channel.send(desc)
client.run("MzgwNzI4OTkwMTEwODQyODgx.DO81GQ.rctkEQtieciETXnmsYbwZvvOkaA")
client.run(token)

1
token.txt Normal file
View File

@ -0,0 +1 @@
MzgwNzI4OTkwMTEwODQyODgx.DO81GQ.rctkEQtieciETXnmsYbwZvvOkaA