Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
/ Cron Public archive
forked from osuthailand/ainu-cron-py

Akatsuki's cron - update leaderboards, python style.

Notifications You must be signed in to change notification settings

osuDebian/Cron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%