mirror of
https://github.com/CAG2Mark/SuperUserBot.git
synced 2024-11-12 21:43:48 +01:00
29 lines
591 B
Python
29 lines
591 B
Python
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)
|