How iteacher/slither-bot works
Hoobs Slither Mod is a Tampermonkey userscript that enhances Slither.io. The main workflow is player settings and toggles → threat/food analysis → avoidance or food-seeking behavior, with overlays and zoom supporting play. The repository is a single 192 KB script, so its distinct responsibilities share mod.js rather than separate modules. The README documents the gameplay relationships; excerpts show canvas discovery and initialization. Other internal links are omitted where the excerpts do not establish them.
Main entry points: mod.js Settings Panel
Components 14
Userscript Runtime
- Mod Runtime
mod.js - Canvas Bootstrap
mod.js
Gameplay Intelligence
- Threat Radar
mod.js - Collision Avoidance
mod.js - Auto-Eat Routing
mod.js - Steering Input
mod.js
UI And Settings
- Settings Panel
mod.js - Persistent Settings
mod.js
Visual Enhancements
- Gameplay Overlays
mod.js - Mouse Scroll Zoom
mod.js - Custom Cursor
mod.js - Background Controls
mod.js
Other components
- Player
- Slither.io
Connections 16
- Player → Settings Panel: configures
README.md - Settings Panel → Persistent Settings: saves preferences
README.md - Mod Runtime → Canvas Bootstrap: waits for canvas
mod.js - Canvas Bootstrap → Mod Runtime: initializes
mod.js - Mod Runtime → Slither.io: enhances gameplay
README.md - Threat Radar → Gameplay Overlays: visualizes threats
README.md - Collision Avoidance → Threat Radar: analyzes heatmap
README.md - Collision Avoidance → Steering Input: calculates steering
README.md - Auto-Eat Routing → Steering Input: routes toward food
README.md - Player → Mouse Scroll Zoom: scrolls to zoom
README.md - Player → Custom Cursor: customizes
README.md - Player → Background Controls: customizes
README.md - Settings Panel → Threat Radar: adjusts detection
README.md - Settings Panel → Collision Avoidance: toggles stance
README.md - Settings Panel → Auto-Eat Routing: toggles stance
README.md - Settings Panel → Gameplay Overlays: toggles display
README.md