diff --git a/test.py b/test.py index 1def14c..9ca186f 100644 --- a/test.py +++ b/test.py @@ -1,12 +1,13 @@ +import json import logging import sys import threading +import lib import disnake from disnake import OptionChoice, OptionType, Option from disnake.ext import commands -import lib bot_owner = 386629192743256065 lib.Commands.check_json() @@ -18,11 +19,12 @@ bot = commands.Bot(command_prefix=lib.Commands.determine_prefix, status=disnake.Status.idle, reload=True, test_guilds=[929446191270330410, 987120286933602354]) -threading.current_thread().name = "main" +threading.current_thread().name = "main" logging.basicConfig(stream=sys.stdout, filemode='w', level='INFO', format='%(asctime)s - %(levelname)s - %(threadName)s - %(message)s') + for filename in lib.CogsPrepare.cog_list(): try: bot.load_extension(f'cogs.{filename}') @@ -44,11 +46,6 @@ async def on_ready(): logging.info('We have logged in as {0.user}'.format(bot)) -@bot.command() -async def hello(inter): - await inter.response.reply('hello') - - @bot.slash_command( name="cog", description="Work with cogs",