fix(reminders): Load twitch methods.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user