rollhub-bot-builder
使用 Agent Casino API 为 Telegram、Discord 和 Twitter 构建和部署自主赌博机器人。创建具有可证明公平性验证的加密赌场机器人、骰子机器人、硬币翻转机器人。 python-telegram-bot、Discord.js、Twitter API 的机器人模板。自动投注、斜杠命令、内联键盘、推文结果。部署赌博机器人、赌场机器人构建器、Telegram 骰子机器人、Discord 赌场机器人、Twitter 投注机器人、自主交易机器人、加密赌博自动化、agent.rollhub.com API 集成、实时投注通知、可证明公平的机器人。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~rollhub-dev-rollhub-bot-buildercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~rollhub-dev-rollhub-bot-builder/file -o rollhub-dev-rollhub-bot-builder.md# Casino Bot Builder
Build and deploy autonomous gambling bots for Telegram, Discord, and Twitter using Agent Casino API. Create crypto casino bots, dice bots, coinflip bots with provably fair verification. Bot templates for python-telegram-bot, Discord.js, Twitter API. Automated betting, slash commands, inline keyboards, tweet results. Deploy gambling bot, casino bot builder, Telegram dice bot, Discord casino bot, Twitter betting bot, autonomous trading bot, crypto gambling automation, agent.rollhub.com API integration, real-time bet notifications, provably fair bot.
## Overview
This skill helps you create and deploy gambling bots for **Telegram**, **Discord**, and **Twitter** that interact with the [Agent Casino API](https://agent.rollhub.com/api/v1). Every bot registers with referral tracking and supports provably fair betting.
## API Base
```
https://agent.rollhub.com/api/v1
```
## Step 1: Register an Agent
Every bot must first register on Agent Casino:
```bash
curl -X POST https://agent.rollhub.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{"name": "my-bot", "ref": "ref_27fcab61"}'
```
Save the returned `agent_id` and `api_key`.
## Step 2: Choose Your Platform
### Telegram Bot
Full template: [references/telegram-bot.md](references/telegram-bot.md)
Features:
- `/bet <amount> <game>` — Place a bet
- `/coinflip <amount>` — Quick coinflip
- `/dice <amount>` — Roll dice
- `/balance` — Check balance
- `/history` — Bet history
- `/autoplay <game> <amount> <rounds>` — Auto-play mode
- Inline keyboards for quick betting
- Real-time result notifications
### Discord Bot
Full template: [references/discord-bot.md](references/discord-bot.md)
Features:
- `/bet amount:100 game:coinflip` — Slash command betting
- `/leaderboard` — Server leaderboard
- `/autoplay` — Automated betting rounds
- Embed messages with bet results
- Role-based access control
### Twitter Bot
Full template: [references/twitter-bot.md](references/twitter-bot.md)
Features:
- Tweet bet results automatically
- Reply-based betting (mention bot + amount)
- Daily summary tweets
- Thread-based betting sessions
## Step 3: Place Bets via API
```bash
# Coinflip
curl -X POST https://agent.rollhub.com/api/v1/bet \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"game": "coinflip", "amount": 100, "choice": "heads"}'
# Dice
curl -X POST https://agent.rollhub.com/api/v1/bet \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"game": "dice", "amount": 100, "target": 50, "over": true}'
```
## Step 4: Verify Results (Provably Fair)
Every bet returns a `server_seed_hash`, `client_seed`, and `nonce`. Verify:
```bash
curl https://agent.rollhub.com/api/v1/verify/<bet_id>
```
## Step 5: Auto-Play Mode
All bot templates include auto-play functionality:
1. Set game, bet amount, and number of rounds
2. Bot places bets automatically with configurable delay
3. Stop conditions: max loss, target profit, or round limit
4. Results logged and reported
## Quick Setup
Run the setup helper:
```bash
bash scripts/setup-bot.sh telegram # or discord, twitter
```
## Keywords
Casino bot builder, Telegram dice bot, Discord casino bot, Twitter betting bot, crypto gambling bot, autonomous betting, provably fair bot, Agent Casino API, coinflip bot, dice bot, gambling automation, bot deployment, slash commands, inline keyboards, auto-play bot, real-time notifications, agent.rollhub.com.
---
## 中文说明
# 赌场机器人构建器
使用 Agent Casino API 为 **Telegram**、**Discord** 和 **Twitter** 构建和部署自主赌博机器人。创建具有可证明公平性验证的加密赌场机器人、骰子机器人、硬币翻转机器人。面向 python-telegram-bot、Discord.js、Twitter API 的机器人模板。自动投注、斜杠命令、内联键盘、推文结果。部署赌博机器人、赌场机器人构建器、Telegram 骰子机器人、Discord 赌场机器人、Twitter 投注机器人、自主交易机器人、加密赌博自动化、agent.rollhub.com API 集成、实时投注通知、可证明公平的机器人。
## 概述
这项技能帮助你创建和部署用于 **Telegram**、**Discord** 和 **Twitter** 的赌博机器人,它们与 [Agent Casino API](https://agent.rollhub.com/api/v1) 交互。每个机器人都通过推荐跟踪注册,并支持可证明公平的投注。
## API 基础
```
https://agent.rollhub.com/api/v1
```
## 第 1 步:注册一个代理
每个机器人都必须首先在 Agent Casino 上注册:
```bash
curl -X POST https://agent.rollhub.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{"name": "my-bot", "ref": "ref_27fcab61"}'
```
保存返回的 `agent_id` 和 `api_key`。
## 第 2 步:选择你的平台
### Telegram 机器人
完整模板:[references/telegram-bot.md](references/telegram-bot.md)
功能:
- `/bet <amount> <game>` — 下注
- `/coinflip <amount>` — 快速硬币翻转
- `/dice <amount>` — 掷骰子
- `/balance` — 查看余额
- `/history` — 投注历史
- `/autoplay <game> <amount> <rounds>` — 自动游戏模式
- 用于快速投注的内联键盘
- 实时结果通知
### Discord 机器人
完整模板:[references/discord-bot.md](references/discord-bot.md)
功能:
- `/bet amount:100 game:coinflip` — 斜杠命令投注
- `/leaderboard` — 服务器排行榜
- `/autoplay` — 自动化投注轮次
- 带投注结果的嵌入消息
- 基于角色的访问控制
### Twitter 机器人
完整模板:[references/twitter-bot.md](references/twitter-bot.md)
功能:
- 自动推送投注结果
- 基于回复的投注(提及机器人 + 金额)
- 每日总结推文
- 基于线程的投注会话
## 第 3 步:通过 API 下注
```bash
# Coinflip
curl -X POST https://agent.rollhub.com/api/v1/bet \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"game": "coinflip", "amount": 100, "choice": "heads"}'
# Dice
curl -X POST https://agent.rollhub.com/api/v1/bet \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"game": "dice", "amount": 100, "target": 50, "over": true}'
```
## 第 4 步:验证结果(可证明公平)
每笔投注都会返回 `server_seed_hash`、`client_seed` 和 `nonce`。验证:
```bash
curl https://agent.rollhub.com/api/v1/verify/<bet_id>
```
## 第 5 步:自动游戏模式
所有机器人模板都包含自动游戏功能:
1. 设置游戏、投注金额和轮次数
2. 机器人以可配置的延迟自动下注
3. 停止条件:最大亏损、目标利润或轮次上限
4. 结果被记录和报告
## 快速设置
运行设置助手:
```bash
bash scripts/setup-bot.sh telegram # or discord, twitter
```
## 关键词
赌场机器人构建器、Telegram 骰子机器人、Discord 赌场机器人、Twitter 投注机器人、加密赌博机器人、自主投注、可证明公平的机器人、Agent Casino API、硬币翻转机器人、骰子机器人、赌博自动化、机器人部署、斜杠命令、内联键盘、自动游戏机器人、实时通知、agent.rollhub.com。