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 logging
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
import lib
|
||||||
|
|
||||||
import disnake
|
import disnake
|
||||||
from disnake import OptionChoice, OptionType, Option
|
from disnake import OptionChoice, OptionType, Option
|
||||||
from disnake.ext import commands
|
from disnake.ext import commands
|
||||||
|
|
||||||
import lib
|
|
||||||
|
|
||||||
bot_owner = 386629192743256065
|
bot_owner = 386629192743256065
|
||||||
lib.Commands.check_json()
|
lib.Commands.check_json()
|
||||||
@@ -18,11 +19,12 @@ bot = commands.Bot(command_prefix=lib.Commands.determine_prefix,
|
|||||||
status=disnake.Status.idle,
|
status=disnake.Status.idle,
|
||||||
reload=True,
|
reload=True,
|
||||||
test_guilds=[929446191270330410, 987120286933602354])
|
test_guilds=[929446191270330410, 987120286933602354])
|
||||||
threading.current_thread().name = "main"
|
|
||||||
|
|
||||||
|
threading.current_thread().name = "main"
|
||||||
logging.basicConfig(stream=sys.stdout, filemode='w', level='INFO',
|
logging.basicConfig(stream=sys.stdout, filemode='w', level='INFO',
|
||||||
format='%(asctime)s - %(levelname)s - %(threadName)s - %(message)s')
|
format='%(asctime)s - %(levelname)s - %(threadName)s - %(message)s')
|
||||||
|
|
||||||
|
|
||||||
for filename in lib.CogsPrepare.cog_list():
|
for filename in lib.CogsPrepare.cog_list():
|
||||||
try:
|
try:
|
||||||
bot.load_extension(f'cogs.{filename}')
|
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))
|
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(
|
@bot.slash_command(
|
||||||
name="cog",
|
name="cog",
|
||||||
description="Work with cogs",
|
description="Work with cogs",
|
||||||
|
|||||||
Reference in New Issue
Block a user