from os import listdir
from core.cls import Bot

bot = Bot(debug=True)

for file in listdir('modules'):
    if file != '__pycache__' and not (file in ['errors.py', 'logs.py'] and bot.debug):
        bot.load_extension(f'modules.{file[:-3]}')

bot.run(bot.token, bot=True, reconnect=True)

from os import listdir
from core.cls import Bot

bot = Bot(debug=True)

for file in listdir('modules'):
    if file != '__pycache__' and not (file in ['errors.py', 'logs.py'] and bot.debug):
        bot.load_extension(f'modules.{file[:-3]}')

bot.run(bot.token, bot=True, reconnect=True)
