Ok nvm im so stupid now the token is safe in a env variable. I will do some docs in a while. It will be hosted on Gitea

main
supopur 2 years ago
parent 4a8c4950e0
commit 19207cd26b

2
.gitattributes vendored

@ -1,2 +0,0 @@
creds.toml filter=secret

@ -1,3 +0,0 @@
[filter "secret"]
smudge = sed "s/token=.*/token=[your token]/"

@ -7,12 +7,11 @@ from discord.ext import commands
with open("config.toml", "r") as f:
config = toml.load(f)
with open("creds.toml", "r") as f:
creds = toml.load(f)
token = os.environ.get('MEETOO_TOKEN')
start_time = time.time()
print(creds)
intents = discord.Intents.default()
intents.members = True
@ -62,4 +61,4 @@ async def stop():
bot.loop.create_task(app.run_task('0.0.0.0', 5000))
bot.run(creds["token"])
bot.run(token)

Loading…
Cancel
Save