Move files to utils folder

This commit is contained in:
Parker M. 2024-07-20 18:15:15 -05:00
parent d69807b2e4
commit fda03dff62
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A
23 changed files with 25 additions and 25 deletions

View File

@ -4,7 +4,7 @@ import os
import requests
import openai
import config
import utils.config as config
from utils.command_tree import Tree

View File

@ -5,8 +5,8 @@ from discord.ext import commands
from cogs.music import Music
from typing import Literal
from ai_recommendations import add_song_recommendations
from config import BOT_COLOR
from utils.ai_recommendations import add_song_recommendations
from utils.config import BOT_COLOR
class Autoplay(commands.Cog):

View File

@ -2,7 +2,7 @@ import discord
from discord import app_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"):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Clear(commands.Cog):

View File

@ -2,7 +2,7 @@ import discord
from discord import app_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"):

View File

@ -2,7 +2,7 @@ import discord
from discord.ext import 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 = {
"play": {

View File

@ -4,14 +4,14 @@ from discord import app_commands
import lavalink
from lavalink import errors
from config import (
from utils.config import (
LAVALINK_HOST,
LAVALINK_PASSWORD,
LAVALINK_PORT,
LOG,
)
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):

View File

@ -2,7 +2,7 @@ import discord
from discord import app_commands
from discord.ext import commands
from config import BOT_COLOR
from utils.config import BOT_COLOR
class News(commands.Cog):

View File

@ -5,7 +5,7 @@ from discord.ext import commands
from cogs.music import Music
import lavalink
from config import BOT_COLOR
from utils.config import BOT_COLOR
class NowPlaying(commands.Cog):

View File

@ -3,7 +3,7 @@ import sqlite3
import discord
import os
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Stats(commands.Cog):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Pause(commands.Cog):

View File

@ -7,8 +7,8 @@ import re
import requests
from cogs.music import Music, LavalinkVoiceClient
from config import BOT_COLOR, APPLE_MUSIC_KEY
from custom_sources import SpotifySource, AppleSource
from utils.config import BOT_COLOR, APPLE_MUSIC_KEY
from utils.custom_sources import SpotifySource, AppleSource
url_rx = re.compile(r"https?://(?:www\.)?.+")

View File

@ -6,7 +6,7 @@ from cogs.music import Music
import math
import lavalink
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Queue(commands.Cog):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Remove(commands.Cog):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Repeat(commands.GroupCog, name="repeat"):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Resume(commands.Cog):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Shuffle(commands.GroupCog, name="shuffle"):

View File

@ -5,8 +5,8 @@ from discord.ext import commands
from cogs.music import Music
import asyncio
from config import BOT_COLOR
from custom_sources import LoadError
from utils.config import BOT_COLOR
from utils.custom_sources import LoadError
class Skip(commands.Cog):

View File

@ -4,7 +4,7 @@ from discord import app_commands
from discord.ext import commands
from cogs.music import Music
from config import BOT_COLOR
from utils.config import BOT_COLOR
class Stop(commands.Cog):

View File

@ -3,8 +3,8 @@ from discord import app_commands
from discord.ext.commands.errors import *
import datetime
from config import BOT_COLOR
from custom_sources import LoadError
from utils.config import BOT_COLOR
from utils.custom_sources import LoadError
# Create a custom AppCommandError for the create_player function