From b870e7e76fe4779f781ec039d0f1203595dc3f59 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 17:01:50 -0500 Subject: [PATCH] misc(moderation): moved files into utils folder --- moderation/importers/galacticbot.py | 2 +- moderation/importers/moderation.py | 2 +- moderation/moderation.py | 10 +++++----- moderation/{ => utils}/config.py | 0 moderation/{ => utils}/database.py | 0 moderation/{ => utils}/embed_factory.py | 0 moderation/{ => utils}/logger.py | 0 moderation/{ => utils}/utils.py | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename moderation/{ => utils}/config.py (100%) rename moderation/{ => utils}/database.py (100%) rename moderation/{ => utils}/embed_factory.py (100%) rename moderation/{ => utils}/logger.py (100%) rename moderation/{ => utils}/utils.py (100%) diff --git a/moderation/importers/galacticbot.py b/moderation/importers/galacticbot.py index 172d5d5..4e4197e 100644 --- a/moderation/importers/galacticbot.py +++ b/moderation/importers/galacticbot.py @@ -2,7 +2,7 @@ from datetime import timedelta import json from redbot.core import commands 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): def __init__(self, timeout, ctx, message): diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index ff5baf0..96c705d 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -3,7 +3,7 @@ import json from typing import Dict from redbot.core import commands 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): diff --git a/moderation/moderation.py b/moderation/moderation.py index 6b9b97c..9fea05f 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -19,11 +19,11 @@ from pytimeparse2 import disable_dateutil, parse from redbot.core import app_commands, checks, commands, data_manager from redbot.core.app_commands import Choice -from .config import config, register_config -from .database import connect, create_guild_table, fetch_case, mysql_log -from .embed_factory import embed_factory -from .logger import logger -from .utils import check_conf, check_permissions, check_moddable, fetch_channel_dict, fetch_user_dict, generate_dict, log +from .utils.config import config, register_config +from .utils.database import connect, create_guild_table, fetch_case, mysql_log +from .utils.embed_factory import embed_factory +from .utils.logger import logger +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.moderation import ImportModerationView diff --git a/moderation/config.py b/moderation/utils/config.py similarity index 100% rename from moderation/config.py rename to moderation/utils/config.py diff --git a/moderation/database.py b/moderation/utils/database.py similarity index 100% rename from moderation/database.py rename to moderation/utils/database.py diff --git a/moderation/embed_factory.py b/moderation/utils/embed_factory.py similarity index 100% rename from moderation/embed_factory.py rename to moderation/utils/embed_factory.py diff --git a/moderation/logger.py b/moderation/utils/logger.py similarity index 100% rename from moderation/logger.py rename to moderation/utils/logger.py diff --git a/moderation/utils.py b/moderation/utils/utils.py similarity index 100% rename from moderation/utils.py rename to moderation/utils/utils.py