docsResourcesSupport Bot

Support Bot

The ZBR Support Bot is the official Discord utility for the ZBR scripting language, built entirely using the ZBR engine. It serves as both a utility for the community and a production-ready example of ZBR’s capabilities.

Key Features

  • Function Discovery: Instant access to syntax, arguments, and examples for any ZBR function.
  • Categorized Reference: Interactive browsing of functions by categories (e.g., Moderation, Embeds, HTTP).
  • Event Triggers: A complete reference for all Discord gateway event triggers supported by ZBR.
  • Production Ready: Demonstrates advanced ZBR features like hot reloading and SQLite-based persistent caching.

Interactive Commands

CommandDescription
!helpDisplays all available commands.
!find <fn>Provides detailed documentation for a specific function.
!search <query>Searches for functions by name or description.
!categoryOpens an interactive menu to browse functions by category.
!randomDisplays a random ZBR function.
!related <fn>Lists other functions within the same category.
!triggersLists all supported ZBR event triggers.
!statsShows statistics about the ZBR language.
!linksProvides important links related to ZBRLang and ZBR.

Quick Start

If you want to run your own instance of the support bot or contribute to its development:

  1. Clone the Repository:

    git clone https://github.com/zbrlang/zbr-bot.git
    cd zbr-bot
  2. Configuration: Create a .env file in the root directory:

    DISCORD_TOKEN=your_token_here
    BOT_ID=your_bot_id
    GUILD_ID=your_guild_id
  3. Run the Bot:

    zbr run

Visual Overview

For a visual overview of the bot’s features, you can also check out the Support Bot Page.