Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Discord.py BoilerplateNew to Visual Studio Code? Get it now.
Discord.py Boilerplate

Discord.py Boilerplate

aryaansheth2121

|
2,173 installs
| (1) | Free
Simple Discord.py Boilerplate Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Discord.py Snippets4Cogs README

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.

demo

v1.1.0 Release

  • Added !shutdown, !onmessage and, !ontyping .

Create Local Extension

cd ./.vscode/extensions
git clone https://github.com/AryaanSheth/Discord.py-Snippets4Cogs

You will not receive live updates if you download the library locally

Requirements

pip install discord.py
pip install discord

Starting A Project

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

Commands

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

Release Notes

1.0.0

Initial release of code

1.0.1

Added !cogs and !startup

1.0.2

Fixed some some bugs when generating file

1.1.0

  • Added !shutdown, !onmessage and, !ontyping .

Source

Github

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft