Last active
July 30, 2021 14:11
-
-
Save masala-man/6d2c627d22de05b3f90bdfc92a0f8bad to your computer and use it in GitHub Desktop.
discord.py cog boilerplate
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
from discord.ext import commands | |
class cog_name(commands.Cog, name='Long Cog Name'): | |
def __init__(self, client): | |
self.bot = client | |
@commands.command() | |
async def first_command(self, ctx): | |
pass | |
@commands.command() | |
async def second_command(self, ctx): | |
pass | |
def setup(client): | |
client.add_cog(cog_name(client)) | |
print("added cog_name") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment