upload command/event templates
This commit is contained in:
parent
b898f170e7
commit
22f51c78d2
2 changed files with 39 additions and 0 deletions
26
examples/exampleCommand.js
Normal file
26
examples/exampleCommand.js
Normal 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
13
examples/exampleEvent.js
Normal 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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in a new issue