Skip to content

Commit

Permalink
Update example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huyaboo authored Feb 27, 2021
1 parent b83015e commit 801c160
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

#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
#PUT THIS FOR EVENTS (replaces @client.event())
@commands.Cog.listener()

#PUT THIS ABOVE ANY COMMAND Y'ALL WANNA MAKE
#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))
client.add_cog(Classname(client))

0 comments on commit 801c160

Please sign in to comment.