Skip to content

Axie Infinity Guild Managment Bot

Notifications You must be signed in to change notification settings

fabriguespe/ronibot

Repository files navigation

About The Project

Hi! This is a discord bot i built using NodeJS for operating an Axie Infinity guild at scale.

Built With

Getting Started

I have put a mongo db for you to use it as a clean slate. I recommend using a mongoide so to import data from an excel or so. I use mingo.

Discord Bot

You have to create a Discord Bot with enouth rights for the bot to operate.

  • Create a Discord Bot Application
  • Copy the Token
  • Create a config.json file like this into Data folder
     {
        "token": "DISCORD_BOT_TOKEN",
        "mongo":"mongodb+srv://manager:db@password@cluster0.bkdr2.mongodb.net/myFirstDatabase?retryWrites=true&w=majority",
        "prefix": "!"
     }
    

MongoDB

MongoDB you will use it to track players names, wallets, payout addresses, etc.

  • Install MongoDB
  • Unzip db
    gunzip ronibot-db.gz -k    
    
  • Import db
    mongorestore --archive=ronibot-db
    

Private keys

For this to work you have to create a file containing all wallets and their private keys. Create a file secrets.json and copy into a structure like this one

{
  
  "ronin:ADDRES1": "privatekey",
  "ronin:ADDRES2": "privatekey",
  "ronin:ADDRES3": "privatekey",
  "ronin:ADDRES4": "privatekey"
}

Populate

I have attached a sample of the users table. You can create a table of all your schollars and their addresses. Then relate it to others

sample.xls

Usage

  • Transfer axies from one wallet to another
!transfer axie AXIE_ID,AXIE_ID FROM_ACCOUNT FROM_ACCOUNT
  • Transfer tokens or usd (converts usd to slp) from one wallet to another. If only one wallet specified the source will come from main wallet.
!transfer slp/axs/ron QUANTITY FROM_ACCOUNT FROM_ACCOUNT
  • You can even transfer USD doing a behind the scenes usd/slp conversion. So you can pay someone in USD terms and system will the slp that it needs
!transfer usd QUANTITY FROM_ACCOUNT FROM_ACCOUNT
  • Update user field in Users DB table
!update ACCOUNT_NUMBER FIELD VALUE 
  • Payment receipt for user
!roni ACCOUNT
  • Reviews all wallets for missing or forgoten SLP and claims it or sends it back to main account
!cron flushall

Contact

Fabrizio Guespe

Twitter @fabriguespe

fguespe@gmail.com

Acknowledgments

I want to thank FerranMarin and his axie-utils for serving as my inspiration

About

Axie Infinity Guild Managment Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published