How sniperrus/hll-top-killer-of-the-day works
This is a small Discord bot that polls the HLL CRCON API, accumulates each player’s highest observed kill count, ranks the top 20, and posts or edits a Discord embed every 15 seconds. The main function coordinates fetching, state updates, ranking, and delivery; the ready handler starts the polling loop. The single sampled source file shows these runtime relationships directly. The README documents the v9 limitation and channel-update capability; no separate implementation modules are present.
Main entry points: main.mjs Bot Runtime
Components 7
Player Collection
- Player Fetcher
main.mjs
Kill Ranking
- Kill History
main.mjs - Top 20 Ranking
main.mjs
Discord Delivery
- Bot Runtime
main.mjs - Embed Publisher
main.mjs
Other components
- HLL CRCON API
- Discord
Connections 8
- Bot Runtime → Player Fetcher: calls
main.mjs - Player Fetcher → HLL CRCON API: fetches players
main.mjs - Bot Runtime → Kill History: updates
main.mjs - Bot Runtime → Top 20 Ranking: requests ranking
main.mjs - Top 20 Ranking → Kill History: reads
main.mjs - Bot Runtime → Embed Publisher: publishes results
main.mjs - Embed Publisher → Discord: sends or edits
main.mjs - Bot Runtime → Discord: logs in
main.mjs