Metadata-Version: 2.1
Name: haruka_bot_red
Version: 0.1.5
Summary: HarukaBot-Red
License: AGPL-3.0-or-later
Keywords: nonebot,nonebot2,qqbot,bilibili,bot,red,chronocat
Author-email: boxie123 <platinumshard@outlook.com>
Requires-Python: >=3.8, <4.0
Requires-Dist: bilireq>=0.2.6
Requires-Dist: click>=8.1.3
Requires-Dist: dynamicadaptor>=0.4.7
Requires-Dist: dynrender-skia>=0.1.6
Requires-Dist: httpx>=0.24.1
Requires-Dist: msvc-runtime>=14.34.31931; sys_platform == "win32"
Requires-Dist: nonebot-adapter-red[auto_detect]>=0.8.0
Requires-Dist: nonebot-plugin-apscheduler>=0.3.0
Requires-Dist: nonebot-plugin-guild-patch>=0.2.3
Requires-Dist: nonebot2[fastapi]>=2.0.0
Requires-Dist: packaging>=23.1
Requires-Dist: playwright>=1.35.0
Requires-Dist: pydantic<=2.0,>=1.10.9
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: tortoise-orm[asyncpg]>=0.19.3
Project-URL: Homepage, https://github.com/boxie123/HarukaBot-Red
Description-Content-Type: text/markdown

# HarukaBot-Red
 基于[HarukaBot](https://github.com/SK-415/HarukaBot)，适配Red协议

因[`go-cqhttp`停止维护](https://github.com/Mrs4s/go-cqhttp/issues/2471)，
且替代方案`chronocat`不支持`onebot`协议，故修改得到此版本，方便原`hb`用户迁移。

### 安装
```commandline
pip install haruka_bot_red
```

### 运行
```commandline
hb run
```

### 原hb用户如何迁移？
1. 卸载原环境中的`haruka_bot`，或新建虚拟环境，并安装`haruka_bot_red`
1. 在原`.env.prod`中添加行：
    ```dotenv
    DRIVER=~fastapi+~httpx+~websockets
    RED_AUTO_DETECT=True
    ```
1. 运行
    ```commandline
    hb run
    ```

### 相比原`HarukaBot`有何区别？
1. 适配`Red`协议而非`Onebot`, 可与`chronocat`链接；
2. 添加配置项`HARUKA_BROWSER_UA`和`HARUKA_BROWSER_COOKIE`, 用户可自行配置, 大幅降低风控概率;
3. 使用`Restful Api`爬取动态列表，相比`gRPC`接口更稳定，更新频率低;
4. 删除自动同意好友申请功能；


> README完善中，点个star为作者加速
