Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated advent of code cog to new extension format #255

Merged
merged 16 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
311 changes: 0 additions & 311 deletions bot/cogs/adventofcode.py

This file was deleted.

2 changes: 2 additions & 0 deletions bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
class AoC(BaseModel):
channel_id: int
role_id: int
leaderboard_id: int
leaderboard_code: str
session_cookie: str


Expand Down
9 changes: 9 additions & 0 deletions bot/extensions/adventofcode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from bot.core import DiscordBot

from .commands import AdventOfCode
from .tasks import AdventOfCodeTasks


async def setup(bot: DiscordBot) -> None:
await bot.add_cog(AdventOfCode(bot=bot))
await bot.add_cog(AdventOfCodeTasks(bot=bot))
Loading
Loading