/axiehelper-qr

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

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

AxieHelper-QR

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

Commands:

  • qr - Generate a QR Code.

image

Requirements

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

Installation

Download the Source Code

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 project directory 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!

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

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",
  "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"
    }
  ]
}

Replace the DISCORD_BOT_TOKEN to what you just copied

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.

Customization

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

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