Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

kcnotes/GDMDashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDMDashboard

Dashboard for Global Discussions Moderators on Fandom, available at https://discussions.fandom.com/wiki/Data:Dashboard.

How it works

  • IRC relay code is used to send JSON in the find:raw schema to GDMDashboard in src/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.

Setup

Build the TypeScript (e.g. tsc).

  1. Run dist/populate_wikis.js - fast
  2. 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
  3. Create environment variable:
ACCESS_TOKEN=<fandom access token>
  1. Run dist/report_handler.js in pm2, e.g. pm2 start dist/report_handler.js -n gdmd
  2. 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

About

Dashboard for Global Discussions Moderators on Fandom

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published