fix duplicate cog name 'ActivityCog'
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s
This commit is contained in:
parent
258544fad5
commit
f150bf9ddb
1
bot.py
1
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):
|
||||
|
@ -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__)
|
||||
|
Reference in New Issue
Block a user