New addon handler

This commit is contained in:
Noah committed 2021-12-18 18:57:45 -06:00
1 parent 4e554b8bee
commit e507176d39
4 files changed
+74 -91

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
// SupportBot | Emerald Services
// Addon Structure
class Command {
constructor(options) {
this.name = options.name;
this.description = options.description;
this.permissions = options.permissions;
this.options = options.options || [];
this.run = options.run;
this.defaultPermission = true;
}
}
class Event {
constructor(event, run) {
this.event = event;
this.run = run;
}
}
module.exports = { Command, Event };