itteerde / fvttconfig

Configuration for our Foundry VTT environments
2 stars 1 forks source link

List Active Modules Macro update #151

Closed itteerde closed 2 months ago

itteerde commented 1 year ago
const modulesActive = game.modules.filter(m => m.active);
const moduleReport = modulesActive.map(
    m => ({ id: m.id, title: m.title, version: m.version })
);
console.log(modulesActive);
console.log(moduleReport);

let reportString = "";

for (i = 0; i < modulesActive.length; i++) {
    m = modulesActive[i];
    reportString = `${reportString}\n1. ${m.title} (version: ${m.version}) : [Project-URL](${m.url}), [Manifest](${m.manifest})`;
}

console.log({ reportString: reportString });
itteerde commented 1 year ago