mirror of
https://github.com/Octech2722/jeevesbot.git
synced 2026-02-04 02:46:37 -06:00
14 lines
398 B
Plaintext
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)) |