1
0
Fork 0
mirror of https://github.com/kou029w/daraz-san.git synced 2025-01-18 16:08:06 +00:00
daraz-san/index.js
2020-04-09 00:16:46 +09:00

9 lines
271 B
JavaScript

const scripts = require("glob").sync("./scripts/*.js").map(require);
module.exports = (app) => {
scripts.forEach((script) => {
if (Array.isArray(script)) return app.message(...script);
if (script instanceof Function) return script(app);
});
return app;
};