From c929e8b949905f8a87eebb4dc5d29f030d30d1d0 Mon Sep 17 00:00:00 2001 From: mudkipscience Date: Sun, 11 Dec 2022 13:39:40 +1100 Subject: [PATCH] move to base + extend so we can have default props --- bot/base/Command.js | 23 +++++++++++++++++++++++ bot/base/Event.js | 9 +++++++++ 2 files changed, 32 insertions(+) create mode 100644 bot/base/Command.js create mode 100644 bot/base/Event.js diff --git a/bot/base/Command.js b/bot/base/Command.js new file mode 100644 index 0000000..f8573bc --- /dev/null +++ b/bot/base/Command.js @@ -0,0 +1,23 @@ +module.exports = class Command { + constructor (name, category) { + // Gateway stuff + this.name = name, + this.description = "No description provided.", + this.options = [], + this.permissions = { + DEFAULT_MEMBER_PERMISSIONS: "SendMessages" + } + this.dm_permission = false, + // Extra stuff Woomy uses internally + this.category = category, + this.usage = "No usage information provided.", + this.friendlyOptions = "No options provided." + this.enabled = true, + this.devOnly = false, + this.cooldown = 2000 + } + + run (client, interaction, data) { //eslint-disable-line no-unused-vars + + } +}; \ No newline at end of file diff --git a/bot/base/Event.js b/bot/base/Event.js new file mode 100644 index 0000000..b725fed --- /dev/null +++ b/bot/base/Event.js @@ -0,0 +1,9 @@ +module.exports = class { + constructor (wsEvent) { + this.wsEvent = wsEvent; + } + + async run (client) { //eslint-disable-line no-unused-vars + + } +}; \ No newline at end of file