/discord-gen-bot

A discord bot can generate stocked accounts and codes.

Primary LanguageJavaScriptMIT LicenseMIT

Discord GEN-BOT

Badges

GitHub code size in bytes GitHub issues GitHub pull requests GitHub Repo stars GitHub

Table of Contents

Installion

Install packages: npm install

Configuration file

Before you try to start the bot, you need to fill the config.json file.

{
    "token": "",
    "prefix": "",
    "genChannel": "",
    "genCooldown": "",
    "color": {
        "green": "0x43B581",
        "yellow": "0xFAA61A",
        "red": "0xF04747",
        "default": "0x7289DA"
    }
}
  • token: Your bot's token
  • prefix: Your prefix for executing commands (max 10 characters)
  • genChannel: Target channel for gen command
  • genCooldown: Time between two gen command (use millisec)

You can change the green, yellow, red and default colors.


Stock location

The default stock location:

const filePath = `${__dirname}/../stock/${args[0]}.txt`;
                        ^^                  ^^
                  commands folder         service

If you want to change the stock location, for example

`${__dirname}/../files/stock/${args[0]}.txt`

You need to keep the ${__dirname}/../ commands folder location.


How it works?

Adding account/data

Add an account or data with add command. The space character in the data parameter make the write wrong.

  • Example: add example_service abcd Wrong example: add example_service abcd efg hijk <-- the last 2 arguments are not stored.

img


Account/data generating

You can add account to the bot using gen command.

  • Example: gen example_service

  • Server:

img

  • DM:

img


Creating service

Create a service with create command.

  • Example: create example_service

img

Check service stock

Check a definied service's account size.

  • Example: check test

img


Upcoming

  • ✔️ stock check - Check how many items in a service file (how many lines in)
  • restock - Restock all services