Skip to content

risker91/mygateBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyGate Network Bot

banner

Features

  • Auto Register Node

  • Maintain Node Operation

  • Supports a Single Node Only

  • Supports Proxy Usage

  • Multiple Accounts Supported

Prerequisites

  • 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

Installation

  1. Clone the repository:

    git clone https://github.com/risker91/mygateBot.git
    cd mygateBot
  2. Install the required dependencies:

    npm install
  3. Input your token in tokens.txt file, one user per line;

    nano tokens.txt
  4. optionally you can use proxy:

  • paste proxy in proxy.txt format http://username:password@ip:port
    nano proxy.txt
  1. Run the script:
    npm run start

Running MyGate as a Systemd Service

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

License: MIT

This project is licensed under the MIT License.

About

my-gate network Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%