This AWS Lambda function fetches Old School Runescape player progress and posts updates to a Discord channel via webhook.
- Fetches player progress from the Wise Old Man API
- Wont include inactive players
- Ranks players by either experience, boss, activity, or efficiency metrics
- Formats and sends updates to Discord using webhooks
- Designed for automated deployment with GitHub Actions
Ranking Embed
Player Embed
-
Set the following environment variables in Lambda:
USERNAMES: Comma-separated list of OSRS usernames - RequiredWEBHOOK_URL: Discord webhook URL - RequiredSEND_PLAYER_EMBED:true,false- Defaults totrueSEND_RANKING_EMBED:true,false- Default totrueSORT_BY:experience_gains,boss_gains,activity_gains- Defaults toexperience_gainsPERIOD:five_minday,week,month- Defaults today
Install dependencies with:
pip install -r requirements.txtRun tests with:
python -m unittest discover tests- Python 3.12+
requestsdiscord-webhook

