forked from alex5nader/UTeachDummies
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
1 changed file
with
19 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import discord | ||
from discord.ext import commands | ||
|
||
#EXAMPLE FORMAT OF THE FILE TO PLACE YOUR COMMANDS | ||
class Classname(commands.Cog): | ||
#Creates class in which to place commands | ||
def __init__(self, client): | ||
self.client = client | ||
|
||
#PUT THIS FOR EVENTS (replaces @client.event()) | ||
@commands.Cog.listener() | ||
|
||
#PUT THIS ABOVE ANY COMMAND Y'ALL WANNA MAKE (replaces @client.command()) | ||
@commands.command() | ||
|
||
#PUT THIS AT THE END OF YOUR PYTHON FILE | ||
def setup(client): | ||
client.add_cog(Classname(client)) | ||
#IMPORT THESE | ||
import discord | ||
from discord.ext import commands | ||
|
||
#EXAMPLE FORMAT OF THE FILE TO PLACE YOUR COMMANDS | ||
class Classname(commands.Cog): | ||
#CREATES CLASS IN WHICH YOU PLACE YOUR COMMANDS | ||
def __init__(self, client): | ||
self.client = client | ||
|
||
#PUT THIS FOR EVENTS (replaces @client.event()) | ||
@commands.Cog.listener() | ||
|
||
#PUT THIS ABOVE ANY COMMAND Y'ALL WANNA MAKE (replaces @client.command()) | ||
@commands.command() | ||
|
||
#PUT THIS AT THE END OF YOUR PYTHON FILE | ||
def setup(client): | ||
client.add_cog(Classname(client)) |