move to base + extend so we can have default props

This commit is contained in:
Emily 2022-12-11 13:39:40 +11:00
parent fb5d8cf7b1
commit c929e8b949
2 changed files with 32 additions and 0 deletions

23
bot/base/Command.js Normal file
View File

@ -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
}
};

9
bot/base/Event.js Normal file
View File

@ -0,0 +1,9 @@
module.exports = class {
constructor (wsEvent) {
this.wsEvent = wsEvent;
}
async run (client) { //eslint-disable-line no-unused-vars
}
};