# InfiniteBot3

## 前言

基于 go-cqhttp 提供的 API 服务，IB3 天然支持群组服/分布式服务。

您需要做的仅仅是在 BC 端上加载插件，\
与需要互通的其它子端配置相同地连接参数与 mysql 服务。 \
\
您就可以在不同的子端上加载不同的附属：\
如登陆服加载 defence-manager 开启白名单验证码服务，\
在生存服加载 chat-manager 运行消息互通服务...

### 群员的催更日记

\
群员: BC在哪呢

作者: ~~好叭，其实 BC 端正在适配中qwq~~   （纯属没时间）

## 环境

为了更好的让插件适配,请注意以下操作 配置你的环境

### Java 8 <a href="#java-8" id="java-8"></a>

该版本可直接运行运行插件

### Java 9+ <a href="#java-9" id="java-9"></a>

若您的服务器使用了 Java9 及以上的版本，请在你的启动参数中添加以下JVM 参数 以便允许来自未命名模块的反射调用。

```cmd
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=ja
```

## 安装

{% hint style="info" %}
插件本体支持 热操作，但不建议 **频繁的热操作插件**。插件附属的加载与卸载为插件内部支持实现，其完全支持热操作，可放心使用。
{% endhint %}

### 本体

从[releases](https://github.com/IllTamer/infinitebot3/releases)下载的InfiniteBot3插件放入服务器的`plugins(插件文件夹)`内并启动服务器,\
待配置文件生成后，参考 [\[config.yml\]](https://illtamer.github.io/infinitebot3/#/zh-cn/src/main/resources/config.yml) 内注释详细配置 go-cqhttp 的连接信息。

配置完毕后启动服务器 待控制台出现了 go-cqhttp websocket 握手成功\
则代表你的部署完美结束,如果是检测断开类的字符请找官方群寻求答案<br>

#### 默认的Infinitebot并无什么功能,请到附属列表下载附属

{% content-ref url="/pages/fCvArlYBMNxBybtWEcMj" %}
[附属](/infinitebot-shi-yong-wen-dang/an-zhuang/fu-shu.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitebot.gitbook.io/infinitebot-shi-yong-wen-dang/an-zhuang/infinitebot3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
