-
Refactor the code to use cogs https://discordpy.readthedocs.io/en/v2.3.2/ext/commands/cogs.html for better maintainability
S1ro1 updated
10 months ago
-
https://discordpy.readthedocs.io/en/stable/ext/commands/cogs.html
See if we need to do this.
-
Hello fellow devs,
As our project has grown, so has the complexity of our codebase. I believe it's time to consider refactoring our code to make it more modular and maintainable.
Currently, the …
-
**Issue Description:**
**Problem:**
Our project currently lacks a modular structure for managing commands and helper functions. This makes it challenging to maintain, scale, and collaborate effect…
-
It would be nice to be able to load/unload a cog from the bot for on the fly maintenance/testing
More info:
https://discordpy.readthedocs.io/en/latest/migrating.html#cog-changes
-
### Is there an existing issue or pull request for this?
- [X] I have searched the existing issues and pull requests
### Feature description
When developing complex bot, it is common to see one fea…
-
Hello,
I don't have an actual issue per se, but I was wondering if/how I might be able to go about this. I have a module that is in a subdirectory but it is imported at runtime with:
modules…
-
## .horoscope
#### Public API Resource
https://aztro.readthedocs.io/en/latest/
#### Description
The API retrieves daily horoscopes for yesterday, today, and tomorrow. It requires name of sign …
-
Rewrite all of the commands using cogs
https://discordpy.readthedocs.io/en/stable/ext/commands/cogs.html
-
So here is my code for the cogs part:
for file in os.listdir("./cogs"):
if file.endswith(".py"):
name = file[:-3]
bot.load_extension(f"cogs.{name}")
please …