Compare commits
3 commits
18ba837467
...
451ecfe5d9
Author | SHA1 | Date | |
---|---|---|---|
451ecfe5d9 | |||
8511b7b964 | |||
f233a7dec5 |
3 changed files with 5 additions and 4 deletions
|
@ -12,6 +12,7 @@
|
|||
too-many-locals,
|
||||
too-many-public-methods,
|
||||
too-many-statements,
|
||||
too-many-positional-arguments,
|
||||
arguments-differ,
|
||||
too-many-return-statements,
|
||||
import-outside-toplevel,
|
||||
|
|
|
@ -39,7 +39,7 @@ class Bible(commands.Cog):
|
|||
self.config.register_global(bible="de4e12af7f28f599-02")
|
||||
self.config.register_user(bible=None)
|
||||
|
||||
def cog_unload(self):
|
||||
async def cog_unload(self):
|
||||
create_task(self.session.close())
|
||||
|
||||
def format_help_for_context(self, ctx: commands.Context) -> str:
|
||||
|
|
|
@ -16,7 +16,7 @@ class HotReload(commands.Cog):
|
|||
|
||||
__author__ = ["[cswimr](https://www.coastalcommits.com/cswimr)"]
|
||||
__git__ = "https://www.coastalcommits.com/cswimr/SeaCogs"
|
||||
__version__ = "1.1.1"
|
||||
__version__ = "1.1.2"
|
||||
__documentation__ = "https://seacogs.coastalcommits.com/hotreload/"
|
||||
|
||||
def __init__(self, bot: Red) -> None:
|
||||
|
@ -28,11 +28,11 @@ class HotReload(commands.Cog):
|
|||
for watchdog_logger in watchdog_loggers:
|
||||
watchdog_logger.setLevel("INFO") # SHUT UP!!!!
|
||||
|
||||
def cog_load(self) -> None:
|
||||
async def cog_load(self) -> None:
|
||||
"""Start the observer when the cog is loaded."""
|
||||
self.bot.loop.create_task(self.start_observer())
|
||||
|
||||
def cog_unload(self) -> None:
|
||||
async def cog_unload(self) -> None:
|
||||
"""Stop the observer when the cog is unloaded."""
|
||||
if self.observer:
|
||||
self.observer.stop()
|
||||
|
|
Loading…
Add table
Reference in a new issue