diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index db15c55..0000000 --- a/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -creds.toml filter=secret - diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index 0e285dc..0000000 --- a/.gitconfig +++ /dev/null @@ -1,3 +0,0 @@ -[filter "secret"] - smudge = sed "s/token=.*/token=[your token]/" - diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/main.py b/main.py index 92e95cb..190bc00 100644 --- a/main.py +++ b/main.py @@ -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)