Introducing

ZBR

The scripting language for discord bots.
Write commands as plain text. No boilerplate.

Rust Core
Hot Reload
SQLite Native
In-Process
Slash Commands
Event Driven
Quick Start

From install to live in seconds.

Choose your path to get started with ZBR.

1

Install the CLI

Install ZBR CLI, directly from npm.

2

Initialize Project

3

Run the Engine

zbr-cli v1.4.1
Gateway Active
latency: 14ms
npm i @zbrlang/zbr
added 1 package in 0.8s
zbr version
zbr v1.4.1
Snippet

Clean. Expressive. Powerful.

rank.zbr
1// ZBR Rank Command Example
2#trigger !rank
3#name Rank Command
4#type prefix
5
6Zvar{xp;ZgetUserVar{xp}}
7Zvar{level;ZgetUserVar{level}}
8
9Ztitle{Zusername{}'s Rank}
10Zdescription{Level: Zvar{level}
11XP: Zvar{xp}}
12Zcolor{#5865F2}
13ZaddField{Server Rank;#Zvar{rank};true}
The Engine

High performance.
Low friction.

ZBR is powered by a high-performance runtime engine built in Rust that parses and executes bot logic. Built on Serenity and Tokio, it handles the Discord gateway with native speed.

Rust Core

Blazing fast execution and memory safety.

Hot Reload

Live updates without engine restarts.

MEM_ALLOC
GW_SHARD
AST_PARSER
TOKIO_ASYNC
Shard #0
Ready
Engine Core Active
Modern Syntax

Built for speed.
Designed for humans.

ZBR uses a functional, tag-based syntax that feels familiar but removes all the boilerplate of traditional Discord libraries.

Functional Syntax

Concise function-based logic like Ztitle{args}.

SQLite Persistence

Native state management with ZsetVar and ZgetVar.

In-Process Engine

Code executes directly in the gateway process, no separate server needed.

#syntaxexample.zbr
#trigger !ping
#name Ping
#type prefix
// This is a comment
Zreply{Pong! Latency: Zping{}ms}
#trigger /userinfo
#type slash
#description Get info about a user
Ztitle{Zusername{Zoption{user}}}
Zdescription{Joined: ZuserJoined{Zoption{user}}}
Questions

Frequently Asked

Everything you need to know about ZBR.

The Toolkit

Batteries included.

Math
String
Embeds
Variables
Cooldowns
Moderation
Roles
Invites
Voice
Stage
Stickers
Events
Forum
Components
HTTP
JSON
Loops
Async
Control Flow
Error Handling