Skip to content

osuRedstar/Redstar-Cron.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redstar

Redstar에 맞게 수정함

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
Debian fork | osuDebian - Cron
Redstar fork | osuRedstar - Redstar-Cron.py

About

Forked https://github.com/osuDebian/Cron

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages