ErisPulse

ErisPulse/ErisPulse Checked 3 hours ago

Event-driven multi-platform bot framework with Dashboard, Docker, hot-reload & module marketplace | 事件驱动的多平台机器人框架 — 支持…

English | 简体中文 | 繁體中文 | 日本語 | Русский A modular, asynchronous robot framework based on the OneBot12 standard interface and event-driven architecture. Business code is written once, and adapters handle platform differences; the plugin system, hot reload, and complete developer toolchain are ready to use out of the box. Unified event model based on OneBot12, a single handler adapts to all adapters

Summary extracted from the README.

English | 简体中文 | 繁體中文 | 日本語 | Русский

ErisPulse

Write once, deploy to QQ / Telegram / Kook / Yunhu / WeChat Official Account / OneBot12 / ... multiple platforms.

A modular, asynchronous robot framework based on the OneBot12 standard interface and event-driven architecture. Business code is written once, and adapters handle platform differences; the plugin system, hot reload, and complete developer toolchain are ready to use out of the box.


Core Features

Event-Driven Architecture

Unified event model based on OneBot12, a single handler adapts to all adapters

Cross-Platform Compatibility

Over 15 platforms including QQ / Telegram / Kook / Yunhu, business code requires zero changes

Modular Design

Plugins can be hot-plugged without restarting, scopes are managed by platform / Bot / session

Hot Reload

Save and apply changes instantly, hot reload is lightweight and seamless

AI Assistance

Describe requirements in natural language, directly generate usable modules

Clean and Elegant

Chainable API: @ user, reply, retry, batch send, all in one line


How It Works

ErisPulse shields platform differences through an adapter layer, allowing business code to focus solely on events themselves:

graph LR
    P["15+ Platforms<br/>QQ · Telegram · Kook · Yunhu · WeChat Official Account · Email · Webhook ..."]
    A["Adapter Layer<br/>Native Protocol → OneBot12 Standard Event"]
    Event["Event Bus<br/>Middleware → Distribute command/message/notice/request/meta"]
    M["Business Module<br/>@command / @message Handlers · Your Module"]
    P --> A --> Event --> M
    M -.->|"event.reply() / SendDSL"| Event
  • The Adapter Layer converts native protocols from each platform into OneBot12 standard events, so business modules are unaware of platform differences.
  • The Event Bus executes middleware chains first, then distributes events to five types of handlers based on event types.
  • Your code subscribes to events via decorators and replies using event.reply() or SendDSL — replies flow back along the same path to the platform.

For detailed information about the complete module composition, initialization process, and lifecycle events, see Architecture Overview.


Quick Start

The installation script automatically detects your environment (Docker, Python, uv), guides you to choose the most suitable installation method, and supports multiple languages (Chinese/English/Japanese/Russian/Traditional Chinese).

Windows (PowerShell):

irm https://get.erisdev.com/install.ps1 -OutFile install.ps1; powershell -ExecutionPolicy Bypass -File install.ps1

macOS / Linux:

curl -fsSL https://get.erisdev.com/install.sh -o install.sh && chmod +x install.sh && ./install.sh

Docker Installation Demo

pip Installation Demo

docker pull erispulse/erispulse:latest

If Docker Hub is inaccessible, you can use GitHub Container Registry:

docker pull ghcr.io/erispulse/erispulse:latest

When using the ghcr.io image, modify the docker-compose.yml file to change the image:

image: ghcr.io/erispulse/erispulse:latest
# Download docker-compose.yml
curl -O https://raw.githubusercontent.com/ErisPulse/ErisPulse/main/docker-compose.yml

# Set Dashboard login token and start
ERISPULSE_DASHBOARD_TOKEN=your-token docker compose up -d

After starting, access http://<host>:8000/Dashboard and log in to the Dashboard management panel using the set token.

The image includes the ErisPulse framework and Dashboard management panel, supporting linux/amd64 and linux/arm64 architectures.

Persistence: Configuration files and installed modules/adapters are persisted to the host machine via volume mounts, so they won't be lost after container restarts. Framework updates are completed through hot updates in the Dashboard.

Variable Default Value Description
ERISPULSE_DASHBOARD_TOKEN Empty Dashboard login token (automatically written to configuration when set)
ERISPULSE_PORT 8000 Dashboard port mapping
ERISPULSE_TAG latest Image tag; can be set to dev to use pre-release images
CONTAINER_NAME erispulse Container name
TZ Asia/Shanghai Container timezone
LANG en_US.UTF-8 System language, automatically detects startup interface language
ERISPULSE_LANG Empty Force startup interface language: zh / zh_TW / en / ja / ru (overrides LANG)

1Panel App Store

Install ErisPulse one-click via the 1Panel app store. See ErisPulse-1Panel for details.

bash <(curl -sL https://get-1panel.erisdev.com/install.sh)

ErisPulse is available in the 1Panel third-party app store and can be installed using the okxlin/appstore third-party repository.

Using pip to Install

pip install ErisPulse

If you want to use epsdk as a global command-line tool without entering a virtual environment, it is recommended to use uv tool install:

uv tool install ErisPulse

You can also use the one-click installation script above, which automatically detects the environment and guides configuration (the script menu also provides the "Global CLI Installation (uv tool)" option).

Initialize Project

# Interactive initialization
epsdk init

# Quick initialization (specify project name)
epsdk init -q -n my_bot

Create Your First Bot

Create a main.py file:

Command Handler

from ErisPulse import sdk
from ErisPulse.Core.Event import command

@command("hello", help="Send a greeting message")
async def hello_handler(event):
    user_name = event.get_user_nickname() or "friend"
    await event.reply(f"Hello, {user_name}!")

@command("ping", help="Test if the bot is online")
async def ping_handler(event):
    await event.reply("Pong! The bot is running normally.")

if __name__ == "__main__":
    import asyncio
    asyncio.run(sdk.run(keep_running=True))

Effect Explanation

Send /hello

Bot replies: Hello, {username}!


Send /ping

Bot replies: Pong! The bot is running normally.


Run Method

epsdk run main.py
# Or run in development mode
epsdk run main.py --reload

For more detailed instructions, see:


The Same Code. Multiple Platforms.

Identical command handlers. Different platforms. No business logic modification required.

Kook

QQ

Yunhu

Ecosystem Modules

The official and community-maintained module ecosystem includes the Dashboard management panel, MyServer AI-native server room in chat, QvQChat AI agent module, and dozens of feature modules contributed by the community:

Dashboard — Web management panel

MyServer — AI-native server room in chat

QvQChat — AI agent module

Module marketplace: https://www.erisdev.com/#market


Chained Send DSL

Mention users, reply, retry, timeout, success callback — complex sending logic, all written in one chain:

yunhu = sdk.adapter.get("yunhu")

# Single send: mention user + reply + retry + success callback
await (yunhu.Send.To("group", "123").At("456").Reply("msg_789")
       .Retry(3).Timeout(10)
       .Hook(lambda r: print("Send successful!")).Text("Hello"))

# Batch send: send multiple messages in one chain
results = await (yunhu.Send.To("user", "123").Build()
                 .Text("Notification 1").Image("pic.jpg").Retry(2).send_all())

All chained methods such as Hook / Retry / Timeout / OnProgress / Defer / Build, see SendDSL documentation.


Multi-turn Conversation Examples

Collect information, validate input, and confirm submission without managing conversation state yourself:

from ErisPulse.Core.Event import command

@command("register")
async def register_handler(event):
    conv = event.conversation(timeout=60)
    await conv.say("Welcome to register!")
    data = await conv.collect([
        {"key": "name", "prompt": "Please enter your name"},
        {"key": "age", "prompt": "Please enter your age",
         "validator": lambda e: e.get_text().strip().isdigit(),
         "retry_prompt": "Age must be a number, please re-enter"},
    ])
    if data and await conv.confirm(f"Confirm registration? Name: {data['name']}, Age: {data['age']}"):
        await event.reply(f"Registration successful! Welcome {data['name']}")

For complete capabilities such as option-based questions (choose), branching jumps (branch / goto), and persistence, see Conversation Multi-turn Dialogue.


Core Modules

A unified sdk entry point that connects all core capabilities:

graph LR
    SDK["sdk unified entry"] --> Event & Adapter & Module & Router & Storage
    SDK --> Config & Lifecycle & Logger & HttpClient
Module Description
Event Event system, providing five types of events: command / message / notice / request / meta + Conversation for multi-turn dialogues
Adapter Adapter management, BaseAdapter base class for unified event transformation and SendDSL sending, supports over 15 platforms such as QQ / Telegram / Kook / Yunhu / WeChat Official Account
Module Module management, BaseModule base class + dependency declaration and topological sorting for loading
SendDSL Chain-based sending, complex logic such as @/reply/retry/timeout/batch can be completed in one line
Router HTTP/WebSocket routing system (FastAPI + Uvicorn)
Storage Key-value storage based on SQLite + generic SQL chain query
Config TOML configuration management
Lifecycle Lifecycle event hooks (core.init / adapter.* / module.*)
Logger Modular logging system, supports sub-loggers
HttpClient Unified HTTP/WS client (based on aiohttp), built-in retry and ErisPulse exception system

For more design details (initialization flow, lifecycle events, module loading strategy), see Architecture Overview.

Scope —— Three-Dimensional Permission Control

Without modifying any module code, declare "what scope it applies to" in the configuration:

[ErisPulse.scope.platforms.onebot11]
modules = ["Chat", "Tool*"]           # ① Module level: Only these modules are enabled on this platform (glob / regex)

[ErisPulse.scope.identity.users.onebot11]
deny = ["u_bad", "spam_*"]            # ② Identity level: Events from blacklisted users are discarded

[ErisPulse.scope.actions.MyModule]
send = { allow = ["Text"] }           # ③ Outbound level: This module is only allowed to send text
api = { deny = ["set_*", "leave_*"] } #    and management APIs are prohibited
# Runtime access is also supported, changes take effect immediately (supports dot-separated path dictionary-style read/write)
sdk.scope.set_action("MyModule", "api", deny=["set_*"])

See Scope


Event Override – Overwrite Behavior of Any Event Type Without Modifying Module Code

Change trigger words, add administrator restrictions to commands, and apply configurations without modifying module source code:

# Override message handler trigger conditions (AND with conditions in code; supports all types: meta/message/notice/request/command)
[ErisPulse.event.overrides.message.ChatModule]
pattern = "闲聊*"

# Override command implementation parameters (master / hidden / aliases / prefix, etc., user priority)
[ErisPulse.event.overrides.command.MyModule.restart]
master = true

See Event Override


Ecosystem

ErisPulse is more than just a framework. Start building right away without having to reinvent the wheel.

Framework

Core Runtime

Unified Event & Message Model

Dashboard

Visual Management

Plugins · Logs · Configuration

Live Demo →

AI Builder

Natural Language → Ready-to-Use Modules

Experience Now →

Module Marketplace

Plug-and-Play Plugins

Explore Modules →

Adapters

Integration with 15+ Platforms

ErisPulse-App

Official Multi-Platform Client

Run Directly on Mobile · Desktop Tray Icon

Download & Install →

Docker

Multi-Architecture Support

erispulse/erispulse

Documentation & CLI

erisdev.com

epsdk Scaffolding Tool


Supported Platforms

Welcome to contribute adapters! Not sure where to start? Check out the Contribution Guide.

Adapter Description
Kook Instant messaging platform Kook (KaiHeLa)
Matrix Decentralized communication protocol Matrix
OneBot11 General robot protocol OneBot v11
OneBot12 OneBot v12 standard protocol
SnowLuma OneBot v11 adapter based on SnowLuma backend (NTQQ hook)
QQ Official QQ robot platform
Sandbox Web-based debugging, no real platform integration required
Terminal Command-line chat, zero-configuration development and debugging
Telegram Global instant messaging platform Telegram
Bilibili Bilibili private messages, supports Cookie / QR code dual login
Email Email protocol adapter for receiving and sending messages
Yunhu Enterprise-level instant messaging platform (robot integration)
Yunhu User Adapter based on Yunhu user protocol
Oopz Oopz voice community (community protocol, user account access, small account recommended)
Flower Maple Café Allons! (・ω・) /
Discord Global community communication platform, supports servers, channels, and private messages
Minecraft Minecraft Java Edition server (RCON), command execution and log monitoring
Webhook Universal HTTP bridge adapter, connects to any system
WeChat Official Account Official WeChat Official Account platform
WeCom WeCom self-built application robot, callback reception and active messages
WeChat ClawBot Official WeChat ClawBot channel (iLink Bot API), binds personal account via QR code

View Adapter Details


Community

Connect with us:

Found the project useful? Consider supporting us on Ifdian to help us continue development!


Star History

If ErisPulse has helped you, please give it a Star ⭐—it's the most direct way to help more developers discover the project.

Star History Chart


Contribution Guide

The health of the ErisPulse project still needs your help! We welcome contributions in various forms:

  1. Report Issues — Submit bug reports via GitHub Issues
  2. Feature Requests — Suggest new ideas through Community Discussions
  3. Code Contributions — Before submitting a PR, please read the Code Style Guide and Contribution Guidelines
  4. Documentation Improvements — Help improve documentation and example code

First-time contributor? Start here 👉 First Contribution Guide

Join the community discussion


Acknowledgements

The core adapter standardization layer draws inspiration and benefits from the OneBot12 specification.

The early exploration and growth of ErisPulse would not have been possible without the support of the Yunhu developer community. Many ideas, adapters, and practical experiences originated here.

We also thank all developers and project authors who have contributed to ErisPulse, the OneBot ecosystem, and the open-source community.