SuperUserBot/main.py

29 lines
591 B
Python
Raw Normal View History

2024-04-28 17:18:06 +02:00
import logging
import os
import bot
from dotenv import load_dotenv
from guilddata import GuildData
from removequeue import RemoveQueue
load_dotenv()
TOKEN = os.getenv('TOKEN')
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logging.getLogger('disnake').setLevel(logging.WARNING)
logging.getLogger('logger.http').setLevel(logging.WARNING)
logger = logging.getLogger("superuserbot")
logger.setLevel(logging.DEBUG)
logger.info("Started superuserbot")
gdata = GuildData()
gdata.load()
rq = RemoveQueue()
rq.load()
instance = bot.Bot(TOKEN, gdata, rq)