osuDebian / Cron

Akatsuki's cron - update leaderboards, python style.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cron

The cron job write by Python. Based on Akatsuki's cron job and adjusted somethings.

Features

  • Recalculate the total PP value of users in all modes and vanilla, relax
  • Recalculate ranks (all modes and vanilla, relax)
  • Update total score
  • Remove expired donor badges
  • Add donor badges
  • Calculate user total playcount
  • Send the progress of Cron Job to discord webbook
  • Multiple send webhooks support
  • Schedule System

Setup

First, install the requirements.

$ python3 -m pip install -r requirements.txt

Once that's finished, you can go ahead and make a config file, by doing:

$ cp ./config.sample.ini ./config.ini
$ nano config.ini

Then you can go ahead and change the needed stuff in there.

If you want to send webhooks to multiple, you can add , between webhook urls in config file.

ex) DISCORD_WEBHOOK = https://discord.com/api/webhooks/123456/QWEQWE, https://discord.com/api/webhooks/456456/ASDASD

And the last thing you have to do, is running the cron job

$ python3 cron.py

If there's any issues during setup and runninng the cron job, feel free to post an issue <3

Original Repo

ORIGINAL | cmyui - Akatsuki-cron-py
Ainu fork | osuthailand - ainu-cron-py

About

Akatsuki's cron - update leaderboards, python style.


Languages

Language:Python 100.0%