generated from python-discord/code-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22a47e6
commit e596a0d
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## How to add new cog to the bot? | ||
- If the cog is a single file | ||
- Add file in `bot/cogs` directory | ||
- If the cog is a directory | ||
- Create python package in `bot/cogs` directory | ||
- In the cog's `__init__.py` file | ||
- Import Cog class and Setup function | ||
- Add both to `__all__` list | ||
- In `bot/cogs/__init__.py` file | ||
- Add the cog name to `cogs_list` | ||
- Cog name here means the name of the file or directory | ||
- see existing cogs for reference |