Code Monkey home page Code Monkey logo

ronin-bot's Introduction

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@[email protected]/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

[email protected]

Acknowledgments

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

ronin-bot's People

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.