Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit d299323

Browse files
committed
Smh imagine forgetting to load task
1 parent de0a597 commit d299323

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_orangcbot/extensions/stars.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Stars(commands.Cog):
1818
def __init__(self, bot: commands.Bot) -> None:
1919
self._bot: commands.Bot = bot
2020
self.STAR_CHANNEL_ID: Final[int] = 1248483372242829313
21+
self.update_star.start()
22+
23+
def cog_unload(self) -> None:
24+
self.update_star.stop()
2125

2226
@tasks.loop(minutes=10)
2327
async def update_star(self):

0 commit comments

Comments
 (0)