pings you on discord when someone in the osekai ranked mapsets leaderboard hits 100 ranked maps (a.k.a. becomes a centurion).
-
copy
config.example.jsontoconfig.jsonand fill in:userCountThreshold: the number of users to check for new centurions (default:100)emptyRunNotification: whether to send a notification when no centurions are found (default:true)osekaiApiUrl: the osekai rankings api endpointdiscord.webhookUrl: your discord webhook urldiscord.userId: your discord user id if you want to be pinged on alerts
-
run using
node index.jsor thestartscript through your package manager of choice, no dependencies needed (apart from node.js but you already knew that)
Note
the first run won’t send centurion alerts — it just builds the cache so the next run has something to compare against.
Important
this script is intended to be run on a schedule (e.g. cron).