Skip to content

Instantly share code, notes, and snippets.

@masala-man
Last active July 30, 2021 14:11
Show Gist options
  • Save masala-man/6d2c627d22de05b3f90bdfc92a0f8bad to your computer and use it in GitHub Desktop.
Save masala-man/6d2c627d22de05b3f90bdfc92a0f8bad to your computer and use it in GitHub Desktop.
discord.py cog boilerplate
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