Unfortunatly the CRON triggers in Github actions are on a best effort basis and could experience quite some delay.
Scheduled Actions
Every 10 Minutes Process Tips
This action will run every 10 minutes.
It wil perfrom two steps
Run download_comments
Run create_leaderboard.py
Dialy Post Leaderboard
This action will run run at the end of the day at 00:15 UTC.
It wil perfrom two steps
Run download_comments for yesterday, to get the tips between the last run and midnight.
Run post_leaderboard.py, create a Post on Reddit.
Python Scripts
code/download_comments.py
In order to be able to create overview for multiple days this script will save all tips of one day in runs/yyyy-dd-mm/tips.csv. It will merge data already in the csv with newly found tips to make sure no data is lost when tips per day exceeds the API limit.
code/post_leaderboard.py
Create a daily leaderboard for the previous day. After the leaderboard is created a post will be submitted to https://www.reddit.com/r/ConeHeads.
code/create_leaderboard.py
This script parses all tips.csv files form the runs folders and compiles the total leaderboard in Leaderboard. It will also gather all tips 1,000,000 and above and add them into the Hall of Fame. The same data will be exported in JSON format to web folder. Leaderboard and Hall of Fame are available here.
exclude_tip.py (mostly suspended)
Sometimes a user uses the !tip command to pay for an avatar or something else. Since that is not really a tip we should not count them towards the leaderboard. By adding the timestamp and username this tips will be excluded. This list of excludes can also be used to exclude tips that do not qualify as “Fair play”.
Coneheads Tip Leaderboard
Scripts to create leaderboards based on tips processed by https://www.reddit.com/user/avatarbot/comments
The results are available in markdown, or JSON. Shown on these test pages Leaderboard and Hall of Fame
General note on CRON tiggers in
github/workflowsUnfortunatly the CRON triggers in Github actions are on a best effort basis and could experience quite some delay.
Scheduled Actions
Every 10 Minutes Process Tips
This action will run every 10 minutes. It wil perfrom two steps
download_commentscreate_leaderboard.pyDialy Post Leaderboard
This action will run run at the end of the day at
00:15 UTC. It wil perfrom two stepsdownload_commentsforyesterday, to get the tips between the last run and midnight.post_leaderboard.py, create a Post on Reddit.Python Scripts
code/download_comments.py
In order to be able to create overview for multiple days this script will save all tips of one day in
runs/yyyy-dd-mm/tips.csv.It will merge data already in the csv with newly found tips to make sure no data is lost when tips per day exceeds the API limit.
code/post_leaderboard.py
Create a daily leaderboard for the previous day.
After the leaderboard is created a post will be submitted to https://www.reddit.com/r/ConeHeads.
code/create_leaderboard.py
This script parses all
tips.csvfiles form therunsfolders and compiles the total leaderboard in Leaderboard.It will also gather all tips 1,000,000 and above and add them into the Hall of Fame.
The same data will be exported in JSON format to
webfolder. Leaderboard and Hall of Fame are available here.exclude_tip.py (mostly suspended)
Sometimes a user uses the
!tipcommand to pay for an avatar or something else. Since that is not really a tip we should not count them towards the leaderboard. By adding the timestamp and username this tips will be excluded. This list of excludes can also be used to exclude tips that do not qualify as “Fair play”.