From bcbda68a824f3024679f698f80d591736fba351a Mon Sep 17 00:00:00 2001 From: parrrate Date: Sat, 29 Jun 2024 18:20:39 +0000 Subject: [PATCH] token env --- v6d3losyash/run-bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v6d3losyash/run-bot.py b/v6d3losyash/run-bot.py index f711a12..3c42acb 100644 --- a/v6d3losyash/run-bot.py +++ b/v6d3losyash/run-bot.py @@ -1,5 +1,6 @@ import asyncio import json +import os import re from io import StringIO from pathlib import Path @@ -15,7 +16,7 @@ from v6d3losyash import config loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) -token = loop.run_until_complete(request_token("losyash", "token")) +token = os.getenv("DISCORD_TOKEN", "unset") client = discord.Client( intents=discord.Intents( members=True,