Changed everything, gonna clean up later.

This commit is contained in:
2026-04-11 01:53:46 +02:00
parent aaff712a04
commit c34c768dcb
2 changed files with 27 additions and 29 deletions

View File

@@ -1,7 +1,25 @@
from discord.ext import commands
import discord
import threading
import os
from dotenv import load_dotenv
_started = False
intents = discord.Intents.default()
bot = commands.Bot(command_prefix="!", intents=intents)
bot.tracked_games = []
bot.tracked_games_lock = threading.Lock()
async def start_bot():
global _started
if _started:
return
_started = True
load_dotenv()
TOKEN = os.getenv("TOKEN")
if not TOKEN:
raise ValueError("No token found")
await bot.start(TOKEN)