fix(reminders): Load twitch methods.

This commit is contained in:
2025-05-23 18:21:21 +10:00
parent c5e9cb1488
commit 010d52e72e

View File

@@ -49,12 +49,16 @@ class ReminderCog(LionCog):
async def cog_load(self): async def cog_load(self):
await self.load_reminders() await self.load_reminders()
self._load_twitch_methods(self.crocbot)
self.loaded.set() self.loaded.set()
async def ensure_loaded(self): async def ensure_loaded(self):
if not self.loaded.is_set(): if not self.loaded.is_set():
await self.cog_load() await self.cog_load()
async def cog_unload(self):
self._unload_twitch_methods(self.crocbot)
async def cog_check(self, ctx): async def cog_check(self, ctx):
await self.ensure_loaded() await self.ensure_loaded()
return True return True