feat(hotreload): add pre-compilation
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 40s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 44s

this feature will detect syntax errors before reloading a cog and cancel the cog reload if it detects one. DOES NOT detect runtime/logic errors, only syntax errors.
This commit is contained in:
cswimr 2025-01-29 23:24:19 +00:00
parent 7c2ff7681c
commit 3eeb2f90a6
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 47 additions and 5 deletions

View file

@ -13,6 +13,10 @@ This is useful for development, as it allows you to make changes to your cogs an
## Commands
### hotreload compile
Determines if the cog should try to compile a modified Python file before reloading the associated cog. Useful for catching syntax errors. Disabled by default.
### hotreload notifychannel
Set the channel where hotreload will send notifications when a cog is reloaded.