haruka_bot_red


Nameharuka_bot_red JSON
Version 0.1.7 PyPI version JSON
download
home_page
SummaryHarukaBot-Red
upload_time2024-01-21 11:14:28
maintainer
docs_urlNone
author
requires_python>=3.8, <4.0
licenseAGPL-3.0-or-later
keywords nonebot nonebot2 qqbot bilibili bot red chronocat
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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用户如何迁移?

> [!TIP]
> 如果你是新用户,或许并不需要以下内容

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为作者加速


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "haruka_bot_red",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8, <4.0",
    "maintainer_email": "",
    "keywords": "nonebot,nonebot2,qqbot,bilibili,bot,red,chronocat",
    "author": "",
    "author_email": "boxie123 <platinumshard@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/59/ca/7de19f98210c54a3905951b1681b45ac34a9ef3a4b9d5e3a1dbbe186ad69/haruka-bot-red-0.1.7.tar.gz",
    "platform": null,
    "description": "# HarukaBot-Red\n \u57fa\u4e8e[HarukaBot](https://github.com/SK-415/HarukaBot)\uff0c\u9002\u914dRed\u534f\u8bae\n\n\u56e0[`go-cqhttp`\u505c\u6b62\u7ef4\u62a4](https://github.com/Mrs4s/go-cqhttp/issues/2471)\uff0c\n\u4e14\u66ff\u4ee3\u65b9\u6848`chronocat`\u4e0d\u652f\u6301`onebot`\u534f\u8bae\uff0c\u6545\u4fee\u6539\u5f97\u5230\u6b64\u7248\u672c\uff0c\u65b9\u4fbf\u539f`hb`\u7528\u6237\u8fc1\u79fb\u3002\n\n### \u5b89\u88c5\n```commandline\npip install haruka_bot_red\n```\n\n### \u8fd0\u884c\n```commandline\nhb run\n```\n\n### \u539fhb\u7528\u6237\u5982\u4f55\u8fc1\u79fb\uff1f\n\n> [!TIP]\n> \u5982\u679c\u4f60\u662f\u65b0\u7528\u6237\uff0c\u6216\u8bb8\u5e76\u4e0d\u9700\u8981\u4ee5\u4e0b\u5185\u5bb9\n\n1. \u5378\u8f7d\u539f\u73af\u5883\u4e2d\u7684`haruka_bot`\uff0c\u6216\u65b0\u5efa\u865a\u62df\u73af\u5883\uff0c\u5e76\u5b89\u88c5`haruka_bot_red`\n1. \u5728\u539f`.env.prod`\u4e2d\u6dfb\u52a0\u884c\uff1a\n    ```dotenv\n    DRIVER=~fastapi+~httpx+~websockets\n    RED_AUTO_DETECT=True\n    ```\n1. \u8fd0\u884c\n    ```commandline\n    hb run\n    ```\n\n### \u76f8\u6bd4\u539f`HarukaBot`\u6709\u4f55\u533a\u522b\uff1f\n1. \u9002\u914d`Red`\u534f\u8bae\u800c\u975e`Onebot`, \u53ef\u4e0e`chronocat`\u94fe\u63a5\uff1b\n2. \u6dfb\u52a0\u914d\u7f6e\u9879`HARUKA_BROWSER_UA`\u548c`HARUKA_BROWSER_COOKIE`, \u7528\u6237\u53ef\u81ea\u884c\u914d\u7f6e, \u5927\u5e45\u964d\u4f4e\u98ce\u63a7\u6982\u7387;\n3. \u4f7f\u7528`Restful Api`\u722c\u53d6\u52a8\u6001\u5217\u8868\uff0c\u76f8\u6bd4`gRPC`\u63a5\u53e3\u66f4\u7a33\u5b9a\uff0c\u66f4\u65b0\u9891\u7387\u4f4e;\n4. \u5220\u9664\u81ea\u52a8\u540c\u610f\u597d\u53cb\u7533\u8bf7\u529f\u80fd\uff1b\n\n\n> README\u5b8c\u5584\u4e2d\uff0c\u70b9\u4e2astar\u4e3a\u4f5c\u8005\u52a0\u901f\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "HarukaBot-Red",
    "version": "0.1.7",
    "project_urls": {
        "Homepage": "https://github.com/boxie123/HarukaBot-Red"
    },
    "split_keywords": [
        "nonebot",
        "nonebot2",
        "qqbot",
        "bilibili",
        "bot",
        "red",
        "chronocat"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec4dd580f5792b1b36269be7f6bcb73ad77a91cec15e5759b730c1c9ab2ebea1",
                "md5": "62af2fd8d68b09392c551b327262bddd",
                "sha256": "96e9d4871994978f4ebc24dbb8ed8044141904e81aed8f51909ded94e3088f4b"
            },
            "downloads": -1,
            "filename": "haruka_bot_red-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "62af2fd8d68b09392c551b327262bddd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8, <4.0",
            "size": 52459,
            "upload_time": "2024-01-21T11:14:26",
            "upload_time_iso_8601": "2024-01-21T11:14:26.959398Z",
            "url": "https://files.pythonhosted.org/packages/ec/4d/d580f5792b1b36269be7f6bcb73ad77a91cec15e5759b730c1c9ab2ebea1/haruka_bot_red-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "59ca7de19f98210c54a3905951b1681b45ac34a9ef3a4b9d5e3a1dbbe186ad69",
                "md5": "d4a0b1a17e68b59166f8e6f5b8d2e222",
                "sha256": "ea251bc582ff0888ec6e2686dcc4844072e5454f663231a4bf80fe7cee1811a7"
            },
            "downloads": -1,
            "filename": "haruka-bot-red-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "d4a0b1a17e68b59166f8e6f5b8d2e222",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8, <4.0",
            "size": 37420,
            "upload_time": "2024-01-21T11:14:28",
            "upload_time_iso_8601": "2024-01-21T11:14:28.698983Z",
            "url": "https://files.pythonhosted.org/packages/59/ca/7de19f98210c54a3905951b1681b45ac34a9ef3a4b9d5e3a1dbbe186ad69/haruka-bot-red-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 11:14:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "boxie123",
    "github_project": "HarukaBot-Red",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "haruka_bot_red"
}
        
Elapsed time: 0.29589s