-
Auto Register Node
-
Maintain Node Operation
-
Supports a Single Node Only
-
Supports Proxy Usage
-
Multiple Accounts Supported
- Node.js installed on your machine
tokens.txt
file containing your MyGate platform token. Follow the instructions below to obtain it:- Open MyGate platform
- Log in with your Gmail account
- Open Developer Tools (F12) and navigate to the Network tab
- Copy the token and save it in
tokens.txt
-
Clone the repository:
git clone https://github.com/risker91/mygateBot.git cd mygateBot
-
Install the required dependencies:
npm install
-
Input your token in
tokens.txt
file, one user per line;nano tokens.txt
-
optionally you can use proxy:
- paste proxy in
proxy.txt
formathttp://username:password@ip:port
nano proxy.txt
- Run the script:
npm run start
To ensure MyGate runs continuously, set it up as a systemd service. Create a service file using:
sudo nano /etc/systemd/system/mygate.service
[Unit]
Description=MyGate
After=network.target
[Service]
ExecStart=/usr/bin/npm run start
WorkingDirectory=/root/mygateBot
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mygate
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start mygate
sudo systemctl enable mygate
sudo systemctl status mygate
See logs realtime
sudo journalctl -u mygate -f
This project is licensed under the MIT License.