This commit is contained in:
robin
2022-07-07 22:16:39 +08:00
parent 264ab8d979
commit a9a4bd0981
86 changed files with 1198 additions and 310 deletions
+1
View File
@@ -6,6 +6,7 @@ const config = require("./config")
const EventEmitter = require('events');
module.exports = async (app) => {
app.event = new EventEmitter()
app.alias["$event"] = app.event
const list = await app.load(config.path)
list.forEach(item => {
Object.keys(item.res).forEach(key => {