From 22f51c78d2db4f631846389c741f87c9265335be Mon Sep 17 00:00:00 2001 From: Emily J Date: Wed, 21 Oct 2020 11:38:55 +1100 Subject: [PATCH] upload command/event templates --- examples/exampleCommand.js | 26 ++++++++++++++++++++++++++ examples/exampleEvent.js | 13 +++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 examples/exampleCommand.js create mode 100644 examples/exampleEvent.js diff --git a/examples/exampleCommand.js b/examples/exampleCommand.js new file mode 100644 index 0000000..dd90f35 --- /dev/null +++ b/examples/exampleCommand.js @@ -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) { + + } +}; \ No newline at end of file diff --git a/examples/exampleEvent.js b/examples/exampleEvent.js new file mode 100644 index 0000000..89d92d2 --- /dev/null +++ b/examples/exampleEvent.js @@ -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) { + + } +}; \ No newline at end of file