SDKs
Überblick
Offizielle SDKs für Python und JavaScript/TypeScript. Ohne Abhängigkeiten, typisierte Modelle, Webhook-Verifizierung integriert.
Siehe auch: CI/CD-Integrationen · Webhook-Verifizierung
Python SDK
Installation
pip install botbellBenachrichtigung senden
from botbell import BotBell
bot = BotBell("bt_your_token")
bot.send("Deploy succeeded ✅")Auf Freigabe warten
from botbell import BotBell, Action
bot = BotBell("bt_your_token")
reply = bot.send_and_wait(
"Deploy to production?",
actions=[
Action(key="approve", label="Approve"),
Action(key="reject", label="Reject"),
],
)
if reply and reply.action == "approve":
deploy()JavaScript / TypeScript SDK
Installation
npm install @botbell/sdkBenachrichtigung senden
import { BotBell } from "@botbell/sdk";
const bot = new BotBell({ token: "bt_your_token" });
await bot.send("Deploy succeeded ✅");Auf Freigabe warten
const reply = await bot.sendAndWait("Deploy to production?", {
actions: [
{ key: "approve", label: "Approve" },
{ key: "reject", label: "Reject" },
],
});
if (reply?.action === "approve") {
deploy();
}