From 260dd3ef4c737ccce840986969fc7ae60b770a10 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 6 May 2024 17:35:43 -0400 Subject: [PATCH] fix(aurora): fixing a ModuleNotFound error --- aurora/__init__.py | 2 +- aurora/aurora.py | 18 +++++------------- aurora/importers/{aurora.py => auroraview.py} | 0 .../{galacticbot.py => galacticbotview.py} | 0 4 files changed, 6 insertions(+), 14 deletions(-) rename aurora/importers/{aurora.py => auroraview.py} (100%) rename aurora/importers/{galacticbot.py => galacticbotview.py} (100%) diff --git a/aurora/__init__.py b/aurora/__init__.py index 49ef5ec..a66006c 100644 --- a/aurora/__init__.py +++ b/aurora/__init__.py @@ -1,4 +1,4 @@ -from .aurora import Aurora +from aurora.aurora import Aurora async def setup(bot): diff --git a/aurora/aurora.py b/aurora/aurora.py index 3eb5a2e..4d7780f 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -20,11 +20,10 @@ from redbot.core import app_commands, commands, data_manager from redbot.core.app_commands import Choice from redbot.core.bot import Red from redbot.core.commands.converter import parse_relativedelta, parse_timedelta -from redbot.core.utils.chat_formatting import (box, error, humanize_list, - humanize_timedelta, warning) +from redbot.core.utils.chat_formatting import box, error, humanize_list, humanize_timedelta, warning -from aurora.importers.aurora import ImportAuroraView -from aurora.importers.galacticbot import ImportGalacticBotView +from aurora.importers.auroraview import ImportAuroraView +from aurora.importers.galacticbotview import ImportGalacticBotView from aurora.menus.addrole import Addrole from aurora.menus.guild import Guild from aurora.menus.immune import Immune @@ -33,17 +32,10 @@ from aurora.models.change import Change from aurora.models.moderation import Moderation from aurora.utilities.config import config, register_config from aurora.utilities.database import connect, create_guild_table -from aurora.utilities.factory import (addrole_embed, case_factory, - changes_factory, evidenceformat_factory, - guild_embed, immune_embed, - message_factory, overrides_embed) - +from aurora.utilities.factory import addrole_embed, case_factory, changes_factory, evidenceformat_factory, guild_embed, immune_embed, message_factory, overrides_embed from aurora.utilities.json import dump from aurora.utilities.logger import logger -from aurora.utilities.utils import (check_moddable, check_permissions, - get_footer_image, log, send_evidenceformat, - timedelta_from_relativedelta) - +from aurora.utilities.utils import check_moddable, check_permissions, get_footer_image, log, send_evidenceformat, timedelta_from_relativedelta class Aurora(commands.Cog): """Aurora is a fully-featured moderation system. diff --git a/aurora/importers/aurora.py b/aurora/importers/auroraview.py similarity index 100% rename from aurora/importers/aurora.py rename to aurora/importers/auroraview.py diff --git a/aurora/importers/galacticbot.py b/aurora/importers/galacticbotview.py similarity index 100% rename from aurora/importers/galacticbot.py rename to aurora/importers/galacticbotview.py