misc(moderation): moved files into utils folder

This commit is contained in:
Seaswimmer 2023-12-18 17:01:50 -05:00
parent fe7193601b
commit b870e7e76f
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE
8 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@ from datetime import timedelta
import json import json
from redbot.core import commands from redbot.core import commands
from discord import Message, ButtonStyle, Interaction, ui from discord import Message, ButtonStyle, Interaction, ui
from ..database import connect, create_guild_table, mysql_log from ..utils.database import connect, create_guild_table, mysql_log
class ImportGalacticBotView(ui.View): class ImportGalacticBotView(ui.View):
def __init__(self, timeout, ctx, message): def __init__(self, timeout, ctx, message):

View file

@ -3,7 +3,7 @@ import json
from typing import Dict from typing import Dict
from redbot.core import commands from redbot.core import commands
from discord import Message, ButtonStyle, Interaction, ui from discord import Message, ButtonStyle, Interaction, ui
from ..database import connect, create_guild_table, mysql_log from ..utils.database import connect, create_guild_table, mysql_log
class ImportModerationView(ui.View): class ImportModerationView(ui.View):

View file

@ -19,11 +19,11 @@ from pytimeparse2 import disable_dateutil, parse
from redbot.core import app_commands, checks, commands, data_manager from redbot.core import app_commands, checks, commands, data_manager
from redbot.core.app_commands import Choice from redbot.core.app_commands import Choice
from .config import config, register_config from .utils.config import config, register_config
from .database import connect, create_guild_table, fetch_case, mysql_log from .utils.database import connect, create_guild_table, fetch_case, mysql_log
from .embed_factory import embed_factory from .utils.embed_factory import embed_factory
from .logger import logger from .utils.logger import logger
from .utils import check_conf, check_permissions, check_moddable, fetch_channel_dict, fetch_user_dict, generate_dict, log from .utils.utils import check_conf, check_permissions, check_moddable, fetch_channel_dict, fetch_user_dict, generate_dict, log
from .importers.galacticbot import ImportGalacticBotView from .importers.galacticbot import ImportGalacticBotView
from .importers.moderation import ImportModerationView from .importers.moderation import ImportModerationView