Move files to utils
folder
This commit is contained in:
parent
d69807b2e4
commit
fda03dff62
@ -4,7 +4,7 @@ import os
|
|||||||
import requests
|
import requests
|
||||||
import openai
|
import openai
|
||||||
|
|
||||||
import config
|
import utils.config as config
|
||||||
from utils.command_tree import Tree
|
from utils.command_tree import Tree
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ from discord.ext import commands
|
|||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
|
||||||
from ai_recommendations import add_song_recommendations
|
from utils.ai_recommendations import add_song_recommendations
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Autoplay(commands.Cog):
|
class Autoplay(commands.Cog):
|
||||||
|
@ -2,7 +2,7 @@ import discord
|
|||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from config import BOT_COLOR, BUG_CHANNEL_ID
|
from utils.config import BOT_COLOR, BUG_CHANNEL_ID
|
||||||
|
|
||||||
|
|
||||||
class BugReport(discord.ui.Modal, title="Report a bug"):
|
class BugReport(discord.ui.Modal, title="Report a bug"):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Clear(commands.Cog):
|
class Clear(commands.Cog):
|
||||||
|
@ -2,7 +2,7 @@ import discord
|
|||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from config import BOT_COLOR, FEEDBACK_CHANNEL_ID
|
from utils.config import BOT_COLOR, FEEDBACK_CHANNEL_ID
|
||||||
|
|
||||||
|
|
||||||
class FeedbackForm(discord.ui.Modal, title="Give feedback about the bot"):
|
class FeedbackForm(discord.ui.Modal, title="Give feedback about the bot"):
|
||||||
|
@ -2,7 +2,7 @@ import discord
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
|
|
||||||
from config import BOT_COLOR, BOT_INVITE_LINK
|
from utils.config import BOT_COLOR, BOT_INVITE_LINK
|
||||||
|
|
||||||
commands_and_descriptions = {
|
commands_and_descriptions = {
|
||||||
"play": {
|
"play": {
|
||||||
|
@ -4,14 +4,14 @@ from discord import app_commands
|
|||||||
import lavalink
|
import lavalink
|
||||||
from lavalink import errors
|
from lavalink import errors
|
||||||
|
|
||||||
from config import (
|
from utils.config import (
|
||||||
LAVALINK_HOST,
|
LAVALINK_HOST,
|
||||||
LAVALINK_PASSWORD,
|
LAVALINK_PASSWORD,
|
||||||
LAVALINK_PORT,
|
LAVALINK_PORT,
|
||||||
LOG,
|
LOG,
|
||||||
)
|
)
|
||||||
from utils.command_tree import CheckPlayerError
|
from utils.command_tree import CheckPlayerError
|
||||||
from ai_recommendations import add_song_recommendations
|
from utils.ai_recommendations import add_song_recommendations
|
||||||
|
|
||||||
|
|
||||||
class LavalinkVoiceClient(discord.VoiceProtocol):
|
class LavalinkVoiceClient(discord.VoiceProtocol):
|
||||||
|
@ -2,7 +2,7 @@ import discord
|
|||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class News(commands.Cog):
|
class News(commands.Cog):
|
||||||
|
@ -5,7 +5,7 @@ from discord.ext import commands
|
|||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
import lavalink
|
import lavalink
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class NowPlaying(commands.Cog):
|
class NowPlaying(commands.Cog):
|
||||||
|
@ -3,7 +3,7 @@ import sqlite3
|
|||||||
import discord
|
import discord
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Stats(commands.Cog):
|
class Stats(commands.Cog):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Pause(commands.Cog):
|
class Pause(commands.Cog):
|
||||||
|
@ -7,8 +7,8 @@ import re
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
from cogs.music import Music, LavalinkVoiceClient
|
from cogs.music import Music, LavalinkVoiceClient
|
||||||
from config import BOT_COLOR, APPLE_MUSIC_KEY
|
from utils.config import BOT_COLOR, APPLE_MUSIC_KEY
|
||||||
from custom_sources import SpotifySource, AppleSource
|
from utils.custom_sources import SpotifySource, AppleSource
|
||||||
|
|
||||||
|
|
||||||
url_rx = re.compile(r"https?://(?:www\.)?.+")
|
url_rx = re.compile(r"https?://(?:www\.)?.+")
|
||||||
|
@ -6,7 +6,7 @@ from cogs.music import Music
|
|||||||
import math
|
import math
|
||||||
import lavalink
|
import lavalink
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Queue(commands.Cog):
|
class Queue(commands.Cog):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Remove(commands.Cog):
|
class Remove(commands.Cog):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Repeat(commands.GroupCog, name="repeat"):
|
class Repeat(commands.GroupCog, name="repeat"):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Resume(commands.Cog):
|
class Resume(commands.Cog):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Shuffle(commands.GroupCog, name="shuffle"):
|
class Shuffle(commands.GroupCog, name="shuffle"):
|
||||||
|
@ -5,8 +5,8 @@ from discord.ext import commands
|
|||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
from custom_sources import LoadError
|
from utils.custom_sources import LoadError
|
||||||
|
|
||||||
|
|
||||||
class Skip(commands.Cog):
|
class Skip(commands.Cog):
|
||||||
|
@ -4,7 +4,7 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from cogs.music import Music
|
from cogs.music import Music
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
|
|
||||||
|
|
||||||
class Stop(commands.Cog):
|
class Stop(commands.Cog):
|
||||||
|
@ -3,8 +3,8 @@ from discord import app_commands
|
|||||||
from discord.ext.commands.errors import *
|
from discord.ext.commands.errors import *
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from config import BOT_COLOR
|
from utils.config import BOT_COLOR
|
||||||
from custom_sources import LoadError
|
from utils.custom_sources import LoadError
|
||||||
|
|
||||||
|
|
||||||
# Create a custom AppCommandError for the create_player function
|
# Create a custom AppCommandError for the create_player function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user