Closed tadeokondrak closed 4 years ago
That's what's blocking this, but the set join message isn't done yet either.
Copying the event loader snippet here before it gets buried in chat any further and we all forget about it:
--- a/scepter.js
+++ b/scepter.js
@@ -41,6 +41,11 @@ const loadedModules = {}
const loadModule = name => {
const module = require(`./modules/${name}`)
+ if (module.events != null) {
+ for (let event of module.events) {
+ client.on(event.trigger, event.run)
+ }
+ }
loadedModules[name] = module
}
This is now unblocked right? #20 added event handling.
What's missing here is handling the
events
export right?