Dashboard for Global Discussions Moderators on Fandom, available at https://discussions.fandom.com/wiki/Data:Dashboard.
- IRC relay code is used to send JSON in the
find:raw
schema to GDMDashboard insrc/report_handler.ts
. src/upload_data.ts
is automatically run daily to process data in an sqlite3 database update all the report numbers in the wiki. It will edit the appropriate page on the Discussions Wiki.gdmdashboard.js
is run on the Discussions Wiki and provides the Dashboard interface. It manipulates the raw logs to a sortable table format.
Build the TypeScript (e.g. tsc
).
- Run
dist/populate_wikis.js
- fast - Run
dist/populate_reports.js
- hours long. It goes through all wikis to check for reports.pm2 start dist/populate_reports.js -n gdmd-pop-rep --no-autorestart
- Create environment variable:
ACCESS_TOKEN=<fandom access token>
- Run
dist/report_handler.js
inpm2
, e.g.pm2 start dist/report_handler.js -n gdmd
- Set up a cron job to run
dist/upload_data.js
, e.g.pm2 start dist/upload_data.js -n gdmd-upload --no-autorestart
0 0 * * * noreplyz pm2 start gdmd-upload >/dev/null 2>&1