About The Project
Hi! This is a discord bot i built using NodeJS for operating an Axie Infinity guild at scale.
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": "!" }
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"
}
Usage
- Transfer axies from one wallet to another
!transfer axie AXIE_id1...,AXIE_idN 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/usd/weth 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
- User report
!report ACCOUNT
- Balance
!balance TOKEN ACCOUNT
- Payment receipt for user
!pay ACCOUNT
- Flush account
!flush ACCOUNT
Contact
Fabrizio Guespe
Twitter @fabriguespe
Acknowledgments
I want to thank FerranMarin and his axie-utils for serving as my inspiration