- 🔄 Automatic node registration and management
- 🤖 WebSocket connection handling with auto-reconnect
- 🎯 Automatic quest completion
- 📊 Regular status updates
- 🔒 Proxy support (HTTP/SOCKS4/SOCKS5)
- 📱 Multi-account support
- 🛡️ Error handling & auto retry
- 📝 Clean and consistent logging
myGateBot/
├── config/
│ ├── api.js # API endpoints configuration
│ └── headers.js # Request headers configuration
├── services/
│ ├── account.js # Account management logic
│ ├── api.js # API interaction methods
│ └── websocket.js # WebSocket connection handling
├── utils/
│ ├── banner.js # ASCII art banner
│ ├── file.js # File operations
│ ├── logger.js # Logging utility
│ └── proxy.js # Proxy agent creation
├── main.js # Main application entry
└── package.json # Project configuration
- Clone the repository:
git clone https://github.com/mbrx10/myGateBot.git
cd myGateBot- Install dependencies:
npm install- Create tokens.txt file with your account tokens
touch tokens.txt- Add your tokens to the tokens.txt file
nano tokens.txt- Create proxy.txt file with your proxies (Optional)
touch proxy.txt- Add your proxies to the proxy.txt file
nano proxy.txtThere are two ways to obtain your MyGate Network token:
- Login to MyGate Network
- Open Developer Tools (F12 or Right Click > Inspect)
- Go to the Network tab
- Look for API responses containing the authentication token
- Copy the token from the response header or body
- Login to MyGate Network
- Open Developer Tools (F12 or Right Click > Inspect)
- Go to the Console tab
- Paste and run the following code:
console.log(JSON.parse(JSON.parse(localStorage.getItem("persist:root")).auth).accessToken);- Copy the token that appears in the console
YOUR_TOKEN_1
YOUR_TOKEN_2
...
# HTTP proxies
http://ip:port
http://username:password@ip:port
# SOCKS proxies
socks4://ip:port
socks5://ip:port
- 🔄 Node reconnection: Every 10 minutes
- 📊 User info update: Every 11 minutes
- 🎯 Quest checking: Every 24 hours
- axios - HTTP client for API requests
- ws - WebSocket client for real-time connections
- https-proxy-agent - HTTP/HTTPS proxy support
- socks-proxy-agent - SOCKS proxy support
- chalk - Beautiful console output
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues and feature requests are welcome!
Give a ⭐️ if this project helped you!
