From f150bf9ddb798f481941d72ec730babbebfd7c5a Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Fri, 6 Dec 2024 11:06:33 +0000 Subject: [PATCH] fix duplicate cog name 'ActivityCog' --- bot.py | 1 + cogs/activity.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index fc37806..a373103 100644 --- a/bot.py +++ b/bot.py @@ -19,6 +19,7 @@ load_dotenv(override=True) log = logging.getLogger(__name__) BASE_DIR = Path(__file__).resolve().parent +DATA_DIR = BASE_DIR / "data" class DiscordBot(commands.Bot): diff --git a/cogs/activity.py b/cogs/activity.py index 59316db..14cc256 100644 --- a/cogs/activity.py +++ b/cogs/activity.py @@ -11,7 +11,7 @@ from discord.ext import commands, tasks log = logging.getLogger(__name__) -class CommandCog(commands.Cog): +class ActivityCog(commands.Cog): """ Handles the bot's profile activity. """ @@ -30,6 +30,6 @@ class CommandCog(commands.Cog): async def setup(bot: commands.Bot): - cog = CommandCog(bot) + cog = ActivityCog(bot) await bot.add_cog(cog) log.info("Added %s cog", cog.__class__.__name__)