first attempt to add promice support

This commit is contained in:
Mylloon 2021-11-02 01:58:53 +01:00
parent 1f29ea0d1a
commit 0581be7f6d
2 changed files with 211 additions and 989 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,15 +2,13 @@ print("Chargement des extensions & librairie...", end = " ")
import discord
from os import listdir, rename, getcwd
from discord_slash import SlashCommand
from discord.ext import commands
from utils.core import load, addReaction
from utils.page import listReaction
keys = load(["PREFIX", "TOKEN_DISCORD", "DEACTIVATE"])
customPrefix = keys["PREFIX"]
client = commands.Bot(command_prefix = customPrefix, case_insensitive = True, intents = discord.Intents.all())
slash = SlashCommand(client, sync_commands = True)
client = commands.Bot(command_prefix = customPrefix, case_insensitive = True, intents = discord.Intents.all(), slash_commands = True)
client.cogs_folder = "cogs"
@ -23,9 +21,10 @@ if keys["DEACTIVATE"] != "None":
print(f"No file {file} found, check your \"DEACTIVATE\" variable.")
exit(1)
for file in listdir(client.cogs_folder):
""" for file in listdir(client.cogs_folder):
if file.endswith(".py") and file.startswith("-") == False:
client.load_extension(f"{client.cogs_folder}.{file[:-3]}")
client.load_extension(f"{client.cogs_folder}.{file[:-3]}") """
client.load_extension(f"cogs.music")
print("Terminé !")
@client.event