Fixed circular import.
This commit is contained in:
7
main.py
7
main.py
@@ -7,16 +7,11 @@ from servermanager import create_server
|
||||
from nicegui import ui
|
||||
from webui import create_ui
|
||||
import threading
|
||||
from bot_instance import bot
|
||||
|
||||
|
||||
intents = discord.Intents.default()
|
||||
bot = commands.Bot(command_prefix="!", intents=intents)
|
||||
load_dotenv()
|
||||
TOKEN = os.getenv("TOKEN")
|
||||
|
||||
bot.tracked_games = []
|
||||
bot.tracked_games_lock = threading.Lock()
|
||||
|
||||
|
||||
def reload_games():
|
||||
with bot.tracked_games_lock:
|
||||
|
||||
Reference in New Issue
Block a user