Introducing

ZBR

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

Rust Core
Hot Reload
SQLite Native
HTTP Server
Slash Commands
Event Driven
Quick Start

From install to live in seconds.

ZBR removes the complexity of Discord bot development. Focus on your commands, we handle the gateway and persistence.

1

Install the CLI

Install ZBR, the high-performance runtime engine built in Rust, directly from npm.

2

Initialize Project

3

Run the Engine

zbr-cli v1.0.0
Gateway Active
latency: 14ms
npm install -g @zbrlang/zbr
added 1 package in 0.8s
zbr --version
zbr v1.0.0
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 a high-performace 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.

API Server

Axum-based HTTP server with a dedicated /run endpoint.

#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