artibot
Version:
Modern, fast and modular open-source Discord bot
19 lines • 707 B
JavaScript
import log from "../logger.js";
export const name = "ready";
export const once = true;
/** Modules initializer */
export function execute(client, artibot) {
artibot.modules.forEach(async (module) => {
module.parts.forEach(async (part) => {
if (part.init && typeof part.init == "function") {
try {
await part.init(artibot);
}
catch (err) {
log("Artibot", artibot.localizer.__("An error occured when trying to run initializing script for [[0]]: ", { placeholders: [part.id] }) + err, "warn", true);
}
}
});
});
}
//# sourceMappingURL=initModulesParts.js.map