How pupariaa/pupsbot works
Pupsbot is an osu! private-message recommendation bot. Its main workflow turns a player’s request into a beatmap suggestion: retrieve player and score data, derive candidate PP ranges, filter and prioritize candidates, then return the result. The graph also captures documented command and website preference capabilities and operational monitoring. Some relationships are based on README documentation or the SOURCE INDEX; unsampled implementations are not inferred beyond those references.
Main entry points: osu.js Recommendation worker · index.js Bot runtime · AlgorithmManager.js PP algorithms · BotHealthMonitor.js Health monitoring
Components 25
Player interaction
- Bot runtime
index.js - PM connection
services/IRC.js - Command routing
services/Commands.js - Recommendation command
commands/o.js - Other commands
commands - Outgoing message queue
services/Queue.js - Automated messages
services/AutoMessageManager.js
Recommendation engine
- Recommendation worker
workers/osu.js - User preferences
managers/UserPreferencesManager.js - PP algorithms
managers/AlgorithmManager.js - PP target calculation
compute/osu/targetPP.js - PP range search
compute/osu/findScoreByPPRange.js - Candidate filters
utils/osu/ScoreFilters.js - Preference scoring
utils/osu/PreferencesScorer.js
osu! and persistence
- osu! API access
services/OsuApis/Manager.js - Internal API client
services/OsuApis/Client.js - Internal API server
services/OsuApis/InternalServer.js - Redis state and cache
services/RedisStore.js - SQL persistence
services/SQL.js - Suggestion history
models/SuggestedBeatmap.js
Operations
- Health monitoring
services/BotHealthMonitor.js - Metrics collection
services/MetricsCollector.js - Alert notifications
services/Notifier.js
Other components
- osu! player
- Pupsweb interface
Connections 27
- osu! player → PM connection: sends PM
README.md - PM connection → Bot runtime: delivers events
index.js - Bot runtime → Command routing: routes commands
index.js - Command routing → Recommendation command: dispatches
- Bot runtime → Recommendation worker: runs recommendations
- Recommendation worker → User preferences: loads preferences
workers/osu.js - Recommendation worker → osu! API access: fetches player data
README.md - Recommendation worker → PP target calculation: calculates target
workers/osu.js - Recommendation worker → PP algorithms: requests candidates
workers/osu.js - PP algorithms → PP range search: searches PP range
managers/AlgorithmManager.js - PP algorithms → PP target calculation: uses target PP
managers/AlgorithmManager.js - Recommendation worker → Candidate filters: filters scores
workers/osu.js - Recommendation worker → Preference scoring: prioritizes candidates
workers/osu.js - Recommendation worker → Redis state and cache: reads and records
workers/osu.js - Recommendation worker → SQL persistence: persists results
workers/osu.js - SQL persistence → Suggestion history: stores suggestions
services/SQL.js - osu! API access → Internal API client: uses client
- Internal API client → Internal API server: requests data
- Pupsweb interface → User preferences: manages settings
README.md - Recommendation worker → Outgoing message queue: returns suggestion
- Outgoing message queue → PM connection: sends reply
- Bot runtime → Other commands: supports commands
README.md - Bot runtime → Automated messages: starts automation
index.js - Bot runtime → Health monitoring: starts monitoring
index.js - Bot runtime → Metrics collection: initializes metrics
index.js - Health monitoring → Metrics collection: reads metrics
services/BotHealthMonitor.js - Health monitoring → Alert notifications: sends alerts
services/BotHealthMonitor.js