mirror of
https://github.com/kou029w/daraz-san.git
synced 2025-01-18 16:08:06 +00:00
9 lines
271 B
JavaScript
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;
|
|
};
|