beta
简体中文

ILBB Docs#

English | 中文

This directory holds the complete documentation for "I Learning Bilibili Emoji Bot (ILBB)". The README in the root directory only covers what the project is; deployment and usage details all live here.


Start here#

Deploying for the first time → Go to Choose a deployment and pick the route that matches your machine. All three routes use uv to create the environment and install dependencies, and that page covers the parts they share.

Already up and running → Pick what you need from the categories below.


Deployment#

WhatEntryChinese version
Choosing among the three routes, shared prerequisites, uv usageChoose a deployment中文
Deploy on Windowsdeploy-windows.md中文
Deploy on Linuxdeploy-linux.md中文
Deploy on an Android phonedeploy-android.md中文

Usage#

WhatEntryChinese version
How every command workscommands.md中文
What each config option doesconfiguration.md中文
Connecting QQ (NapCat)platform-integration.md中文

Development#

WhatEntryChinese version
Writing your own pluginplugin-dev.md中文

Three concepts shared by all platforms#

Understanding these three things will make the docs much easier to read.

1. Configuration has three layers, in descending order of priority System environment variables → .env file → built-in code defaults. Values changed in the setup wizard and the admin panel are written back to files, with the same effect as editing .env by hand.

2. Startup must be from the project root directory Inside the project, cache, temp, and font use relative paths. Starting from a different directory will report that the directory cannot be found.

3. ILBB is the WebSocket server, NapCat is the client It is not ILBB connecting out to NapCat; rather, NapCat connects to ILBB's 6700 port using a "reverse WebSocket". If you get the direction backwards, it will never connect. See platform-integration.md for details.


Architecture in one sentence#

文本
QQ client
   │  (NapCat logs in to QQ)
   ▼
NapCat ──reverse WebSocket──▶ core/ws_server.py (port 6700)
                              │
                              ├─▶ core/bot_commands.py  command routing (/meme /pair /quote)
                              │        └─▶ core/meme_service.py  meme composition
                              │        └─▶ core/bot_render.py   help image rendering
                              │        └─▶ plugin_manager     plugin commands
                              │
                              └─▶ app.py (Flask, port 5000) WebUI / REST / OpenAI-compatible layer /v1

Running into problems#

  1. First check the "FAQ" at the end of the corresponding deployment doc.
  2. Then check the "FAQ" in the root README.
  3. If that still doesn't help, watch the terminal logs at startup — ILBB's logs are in Chinese, and the vast majority of errors will directly tell you what is missing and what to install.

Back to docs home | 中文

ILBB 文档 · 内容来自仓库 docs/ 目录 回到顶部