jeevesbot/cogs/_commands.py.example

14 lines
398 B
Plaintext

import discord
from discord.ext import commands
class Whatever(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command() # Creates a command just as you would in the bot.py file
async def command(self, ctx): # ALWAYS need self then context
print('This event happened and I heard it!')
def setup(client):
client.add_cog(Whatever(client))