Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
/ axiehelper-qr Public archive

A Discord Bot to generate a QR Code for Axie Infinity using Email & Password

License

Notifications You must be signed in to change notification settings

smethz/axiehelper-qr

Repository files navigation

AxieHelper-QR

A Discord Bot to generate a QR Code for Axie Infinity.

  • Uses Email and Password
  • Captcha Solver
  • Data Caching
  • Easily Customizable

Commands:

  • qr - Generate a QR Code.

image

Requirements

  • Node.js version 16.6 or higher
  • Anti Captcha API Key
  • Discord Bot Token
  • Discord Server ID & Discord User ID
  • Axie Infinity Email and Password

Installation

Download the Source Code first

Then extract the folder to your Desktop or somewhere you can easily access it

Installing Node.js

Install Node.js v16.6 or higher

Next you'll need to open your terminal.

On Windows, either:

  • Shift + Right-click inside your bot folder and choose the "Open command window here" option
  • Press Win + R and run cmd.exe, and then cd into your folder directory

On macOS, either:

  • Open Launchpad or Spotlight and search for "Terminal"
  • In your "Applications" folder, under "Utilities", open the Terminal app

With the terminal open, run the node -v command to make sure you've successfully installed Node.js. If it outputs v16.6.0 or higher, great! Don't close the terminal yet, you still have steps to follow!

image

Installing Dependencies

With Node.js installed, you can now install the required dependencies in order to run your discord bot

Using the terminal simply run this command in your discord bot folder to install the required dependencies:

npm install

Wait for it to finish and you should now have node_modules folder in the directory

Creating a Discord Bot

Create your bot in Discord Developer Portal

You can follow this video on creating a discord bot:

image

Inviting Your Bot

So far you’ve made a Discord Bot account but it’s not actually in any server

If you want to invite your bot you must create an Invite URL for it

There are 2 methods provided on how to do it

  1. Modifying the URL Provided
  2. Generating the Invite URL

1. Modifying the URL Provided

First you need to copy your Client ID at OAuth2 then General and copy the Client ID

You just replace the YOUR_BOT_ID from this URL with the Client ID that you copied

https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&permissions=100352&scope=bot%20applications.commands

2. Generating the Invite URL

Simply go to OAuth2 tab and and select URL Generator

image

On Scopes tick the bots and application.commands

image

Tick the permissions required for your bot to function under “Bot Permissions”

image

Now the resulting URL can be used to add your bot to a server.

Copy and paste the URL into your browser, choose a server to invite the bot to, and click “Authorize”.

Launching your Discord Bot

Now your bot should be in your server but it is still offline and doesn't do anything

We need to setup the configuration first to launch your bot

Copy your Bot's Token in Discord Developer Portal

image

In your discord bot folder, open the config.json and it should look like this:

{
  "client_token": "DISCORD_BOT_TOKEN",
  "anticaptcha_key": "API_KEY",
  "client_status": {
    "type": "PLAYING",
    "description": "Axie Infinity"
  },
  "guild_id": "SERVER_ID",
  "scholars": [
    {
      "id": "DISCORD_USER_1_ID",
      "email": "EMAIL1@EMAIL",
      "password": "PASSWORD1"
    },
    {
      "id": "DISCORD_USER_2_ID",
      "email": "EMAIL2@EMAIL",
      "password": "PASSWORD2"
    },
    {
      "id": "",
      "email": "",
      "password": ""
    }
  ]
}

Replace the DISCORD_BOT_TOKEN to what you just copied

For API_KEY you'll need an anti-captcha account. You can find your API key on API Settings page after creating an account

For SERVER_ID, DISCORD_USER_ID_1, and DISCORD_USER_ID_2 you can follow this guide to find the Server ID and User ID

Save your changes and the bot is now ready

Run start.bat to launch your Discord Bot!

image

You need to keep the process running in order for the commands to work. You can also look for hosting providers that will run the your bot 24/7. I will not cover it and you must do your own research as there are a lot of options out there on hosting your bot.

Customization

Icon

You can replace the icon.png at ./assets/images/ to any image you like just make sure the file name and file extension is still the same

Status

Customize your bot's status in config.json and change the type and description to your liking

Type Format Example
PLAYING Playing {description} Playing Axie Infinity
LISTENING Listening to {description} Listening to Spotify
WATCHING Watching {description} Watching YouTube Together
COMPETING Competing in {description} Competing in Infinity Cup Tournament

Support

Discord Banner 2

If you don't understand something in the documentation or you are experiencing problems, please don't hesitate to join our Discord Server

License

GNU GPL V3

About

A Discord Bot to generate a QR Code for Axie Infinity using Email & Password

Resources

License

Stars

Watchers

Forks

Packages

No packages published