A simple Discord.py boilerplate generator updated for 2022
The extension is inspired by discord.py Code Snippets by Wasi Master. The code in the snippets is a simple and effective way to load multiple cogs for a Discord.py project.
- Added
!shutdown
,!onmessage
and,!ontyping
.
cd ./.vscode/extensions
git clone https://github.com/AryaanSheth/Discord.py-Snippets4Cogs
You will not receive live updates if you download the library locally
pip install discord.py
pip install discord
In your project root create a main.py file and type !cogmain
create a new folder in root called cogs
In the folder create startup.py and type !startup
To create a custom cog, create a new file cogName.py and type !cog
Command | Output |
---|---|
!cogmain | boilerplate for main.py |
!startup | boilerplate for startup cog |
!cog | boilerplate for general cog |
!shutdown | boilerplate for shutdown event |
!onmessage | boilerplate for message event |
!ontyping | boilerplate for typing event |
Initial release of code
Added !cogs
and !startup
Fixed some some bugs when generating file
- Added
!shutdown
,!onmessage
and,!ontyping
.