Giter Site home page Giter Site logo

highskydao / axie-ronin-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 103 KB

Telegram bot that allows you to grant access to Axie Infinity account without disclosing Ronin seed

Dockerfile 1.35% Python 95.71% Shell 2.94%
telegram-bot axie-infinity axie-infinity-bot ronin-wallet

axie-ronin-bot's Introduction

Axie Ronin Bot

Telegram bot that allows you to grant access to Axie Infinity account without disclosing Ronin seed.

Core features

  • Adding different user roles and permissions
  • Sale, purchase, gift Axies and tokens
  • SLP actions: claim and gather

Please note that you are installing the bot yourself on your own server. Only you are responsible for the security of your data. Do not grant access to your server to unauthorized persons.

Preparation

First of all, you need a server on which you will run the bot. You can register VPS with any convenient cloud provider. For example, you can use the services of linode.com or vultr.com. Please note that access to the Axie Infinity website API is blocked for subnets of some providers (For example DigitalOcean). You may need to use a proxy to run the bot.

The bot will most likely work on any Linux distribution, but this instruction implies that you are using a Debian compatible system, for example, Ubuntu.

As soon as you get root access to your server, you will need to register a Telegram bot. Use @BotFather /newbot command and get bot username and token.

register-bot

You should also get your internal Telegram id using https://t.me/my_id_bot.

To use the bot, you also need an axieinfinity.com account with a verified email, and a Seed Recovery Phrase from your Ronin Wallet.

Installation

Connect to your VPS over SSH.

Download the latest release and unpack archive.

mkdir AxieRoninBot && cd AxieRoninBot
curl -fsSL https://github.com/HighSkyDAO/AxieRoninBot/tarball/main | tar -xz --strip-components=1

Running in Docker container

If you don't have docker installed on your VPS, do it with the command:

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && rm get-docker.sh

Then you can start the bot installation:

sudo sh scripts/run_setup.sh

To start bot itself run:

sudo sh scripts/run_bot.sh

Change the proxy for the bot:

sudo sh scripts/set_proxy.sh

To see bot logs run:

sudo sh scripts/show_bot_logs.sh

To restart bot:

sudo sh scripts/restart_bot.sh

To remove bot completely:

sudo sh scripts/remove_bot.sh
cd ..
rm -r AxieRoninBot

Manual

You can run this bot without Docker and install the required dependencies manually:

sudo apt install -y python3-pip
pip3 install -r requirements.txt
python3 setup.py
python3 bot2.py

Using proxy

If you see errors about denying access to the server in the logs after starting the bot, you can use a proxy. This bot supports http and socks5 proxy types.

To add proxy run the script:

sudo sh scripts/set_proxy.sh

You can also update the file credentials.json manually using this format:

    {
        "owner_id": 50123456,
        "seed": "12 seed phrase words",
        "telegram_token": "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11",
        "proxy": "socks5://user:[email protected]:1080"
    }

Then you should restart bot using the command:

sudo sh scripts/restart_bot.sh

How it works

First, you must Select account that you will manage. It can be changed in the future.

Then you should be able to do the following Account actions:

  • Check your balance
  • Send your tokens (ETH, SLP, AXS)
  • Change your account password
  • Manage your Axies (same as in web interface)

Game SLP Actions are also available to you:

  • Gather to one
  • Claim all

Use the Permissions button to manage users, who can interact with your account.

To Add user, this user should write any message to your Telegram bot from his own account first. Then this user can provide you the Telegram ID, which you can register in the bot.

Once you have added a new user, you can change user roles and permissions. Please note that if you want to allow sending tokens or Axie to another account, you must add the required ronin wallets to the whitelist.

axie-ronin-bot's People

Contributors

antonlukin avatar psih31337 avatar vforvoid avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.