Skip to main content

Installation

To install this plugin, follow these steps:
  1. Download the plugin files, put them in /plugins folder.
  2. Download the dependency ZDLibrary via GitHub.
  3. Join the discord server ( discord.gg/zerodev ) and create a ticket for license request.
  4. Paste the license key in LICENSE_KEY field in the config.
  5. Restart AthenaBot via npm start or node index.js.

Configuration

The configuration for Product Panel allows you to create interactive panels where users can view and purchase products.

General Settings

  • LICENSE_KEY: Your plugin license key.
  • always_use_web_api_downloads: If set to true, the bot will provide download links via the Web API instead of as message attachments.

Creating Panels and Products

Panels are defined in the panel_linking section. Each panel can contain multiple products.
panel_linking: {
  panel1: {
    type: "SELECT_MENU", // "SELECT_MENU" or "BUTTON"
    id1: {
      role: "ROLE_ID",    // The role required to download
      name: "Product Name",
      emoji: "%custom_emoji_1%", // Optional emoji
    }
  }
}
  • Type: Choose between SELECT_MENU (dropdown) or BUTTON for the interaction style.
  • Products: Add product entries inside the panel. Each must have a role ID and a name.

Permissions

You can restrict who can use the /productpanel command or interact with buttons in the permissions section by setting them to a specific role name or everyone.