Merge remote-tracking branch 'origin/move_to_disnake' into to_disnake
# Conflicts: # test.py
This commit is contained in:
11
test.py
11
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",
|
||||
|
||||
Reference in New Issue
Block a user