How fakerpk/newgrassbot works
This repository presents a Python bot for running Grass Node WebSocket connections through SOCKS proxies, including multiple accounts and proxy-failure handling. The documented workflow is to start the script, provide account and proxy-count inputs, load proxy addresses, and connect to Grass through proxies; dead proxies may be removed from the proxy file. The source excerpts are heavily obfuscated and incomplete, so the graph relies on README-described behavior and does not infer internal module calls. The README mentions config.json for multiple user IDs, but that file is absent from the supplied tree.
Main entry points: main.py Bot runner · winmain.py Windows runner · proxy.txt Proxy list
Components 7
Bot operation
- Bot runner
main.py - Windows runner
winmain.py - Proxy list
proxy.txt
Grass connections
- Grass service
- SOCKS proxies
Proxy resilience
- Dead proxy removal
main.py
Other components
- Operator
Connections 10
- Operator → Bot runner: starts and configures
- Operator → Windows runner: starts and configures
- Bot runner → Proxy list: reads proxies
- Windows runner → Proxy list: reads proxies
- Bot runner → SOCKS proxies: connects through
- Windows runner → SOCKS proxies: connects through
- Bot runner → Grass service: opens WebSockets
- Windows runner → Grass service: opens WebSockets
- Bot runner → Dead proxy removal: handles dead proxies
- Dead proxy removal → Proxy list: removes proxies