The official Discord support bot for the ZBR scripting language, built entirely with ZBR. This repository serves as a production-ready example of how to build a comprehensive utility and support bot using the ZBR engine.
This bot provides a powerful pool of support commands to help developers discover and use ZBR functions:
- Function Discovery: Search for any ZBR function and get instant details on syntax, arguments, and examples.
- Categorized Reference: Browse functions by category (Moderation, Embeds, HTTP, etc.) using interactive buttons.
- Support Utility: Quickly find related functions or get a random function to learn something new.
- Event Triggers: Reference all available Discord gateway event triggers supported by ZBR.
| Trigger | Description |
|---|---|
!help |
Shows all available commands. |
!find <fn> |
Detailed documentation for a specific function. |
!search <query> |
Search functions by name or description. |
!category |
Interactive menu to browse functions by category. |
!random |
Discover a random ZBR function. |
!related <fn> |
Find other functions in the same category. |
!triggers |
List all ZBR event triggers. |
!stats |
Statistics about the ZBR language. |
!links |
Provide a list of important links related to ZBRLang and ZBR. |
Import the zbr-export-support-bot.zip into the ZBR Webapp for a visual development experience:
- Import the project.
- Manage commands, variables, and settings visually.
- Export your customized version as a ZIP.
- Install the CLI, extract your ZIP, and run your bot with
zbr run.
-
Prerequisites Ensure you have the ZBR CLI installed:
npm i @zbrlang/zbr -g
-
Configuration
- Clone this repository.
- Create a
.envfile from the provided.env.example. - Fill in your
DISCORD_TOKEN,BOT_ID, andGUILD_ID.
-
Running the Bot Simply run the following command in the project root:
zbr run
This bot is configured with:
- Hot Reloading: Changes in
commands/are applied instantly. - Persistent Database: Uses SQLite for server-specific variable caching.
- Interaction Handlers: Seamless pagination and message updates using
Zupdate{}.
All Rights Reserved. See LICENSE for details.
Built with ⚡ by ZBRLang