Compare commits
No commits in common. "b6d77a593b7fc1c2932d96a103a873102b5907a1" and "f3d80d107105664d1a23ad0bc9adbbcbe2df0e80" have entirely different histories.
b6d77a593b
...
f3d80d1071
5 changed files with 7 additions and 8 deletions
|
@ -12,7 +12,6 @@
|
|||
too-many-locals,
|
||||
too-many-public-methods,
|
||||
too-many-statements,
|
||||
too-many-positional-arguments,
|
||||
arguments-differ,
|
||||
too-many-return-statements,
|
||||
import-outside-toplevel,
|
||||
|
|
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
|
@ -5,11 +5,11 @@
|
|||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: Red-DiscordBot",
|
||||
"name": "Red-DiscordBot",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "redbot",
|
||||
"args": ["local", "--dev", "-vvv", "--load-cogs=hotreload"]
|
||||
"args": ["local", "--dev", "-vvv"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class Bible(commands.Cog):
|
|||
self.config.register_global(bible="de4e12af7f28f599-02")
|
||||
self.config.register_user(bible=None)
|
||||
|
||||
async def cog_unload(self):
|
||||
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.2"
|
||||
__version__ = "1.1.1"
|
||||
__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!!!!
|
||||
|
||||
async def cog_load(self) -> None:
|
||||
def cog_load(self) -> None:
|
||||
"""Start the observer when the cog is loaded."""
|
||||
self.bot.loop.create_task(self.start_observer())
|
||||
|
||||
async def cog_unload(self) -> None:
|
||||
def cog_unload(self) -> None:
|
||||
"""Stop the observer when the cog is unloaded."""
|
||||
if self.observer:
|
||||
self.observer.stop()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"author" : ["cswimr"],
|
||||
"install_msg" : "Thank you for installing HotReload! This cog does not provide any commands, please see the [documentation](https://seacogs.coastalcommits.com/hotreload) for more information.",
|
||||
"install_msg" : "Thank you for installing HotReload!",
|
||||
"name" : "HotReload",
|
||||
"short" : "Automatically reload cogs in local cog paths on file change.",
|
||||
"description" : "Automatically reload cogs in local cog paths on file change.",
|
||||
|
|
Loading…
Add table
Reference in a new issue