upload command/event templates

This commit is contained in:
Emily 2020-10-21 11:38:55 +11:00
parent b898f170e7
commit 22f51c78d2
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,26 @@
/* eslint-disable */
// Don't modify the name or category variables, they are set automatically by the loaders.
module.exports = class {
constructor (name, category) {
this.name = name,
this.category = category,
this.enabled = true,
this.guildOnly = false,
this.devOnly = false,
this.aliases = [],
this.userPerms = [],
this.botPerms = [],
this.cooldown = 2000,
this.help = {
description: 'description',
usage: 'usage',
examples: 'examples'
};
}
// Main function that is called by the message handler when the command is executed
run (client, message, args, data) {
}
};

13
examples/exampleEvent.js Normal file
View file

@ -0,0 +1,13 @@
/* eslint-disable */
// Don't modify any constructor variables here
module.exports = class {
constructor (wsEvent) {
this.wsEvent = wsEvent;
}
// The main function that is called by the event listener when this event is emitted
async run (client) {
}
};