Add initial code
This commit is contained in:
20
src/commands/command.py
Normal file
20
src/commands/command.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import discord
|
||||
|
||||
class Command():
|
||||
def __init__(self):
|
||||
# Useful boilerplate
|
||||
# You should overwrite these values!
|
||||
|
||||
self.name = "command" # Lower case and no spaces please :)
|
||||
self.display_name = "Command"
|
||||
self.description = "command description"
|
||||
self.triggers = ["command"]
|
||||
|
||||
self.hidden = False
|
||||
|
||||
# {} will be .formatted to be the command prefix
|
||||
self.usage = "{}command"
|
||||
|
||||
async def run(self, bot: discord.Client, config: dict, message: discord.message, content: str):
|
||||
# Implement this!
|
||||
pass
|
||||
Reference in New Issue
Block a user