nonebot-plugin-HttpCat


Namenonebot-plugin-HttpCat JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/ANGJustinl/nonebot_plugin_HttpCat
Summary_✨Nonebot猫猫http状态码插件✨_
upload_time2023-01-03 01:58:02
maintainer
docs_urlNone
authorANGJustinl
requires_python>=3.7
license
keywords pip nonebot2 nonebot nonebot_plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>


# nonebot_plugin_HttpCat
  
_✨Nonebot猫猫http状态码插件✨_

---
  
<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/ANGJustinl/nonebot_plugin_HttpCat" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot_plugin_HttpCat">
    <img src="https://img.shields.io/pypi/v/nonebot_plugin_HttpCat.svg" alt="pypi">
</a>
<a href="https://www.python.org">
    <img src="https://img.shields.io/badge/python-3.7+-blue.svg" alt="python">
</a>

---  
 </div> 
  
## 💿 安装

### 1. nb-cli安装(推荐)

bot根目录下打开命令行,执行nb命令安装插件,插件配置会自动添加至配置文件 
```
nb plugin install nonebot_plugin_HttpCat
```
### 2. pip安装
```
pip install nonebot_plugin_HttpCat --upgrade
```  
打开 nonebot2 项目的 ```bot.py``` 文件, 在其中写入  

```nonebot.load_plugin('nonebot_plugin_HttpCat')```  

或在bot路径```pyproject.toml```的```[tool.nonebot]```的```plugins```中添加```nonebot_plugin_HttpCat```即可  

### 3.应用思路(开发者)

本包提供了两个函数,分别对应了httpcat的 解释msg 和 图片url,或许大家可以拿来让http报错不再无聊~(笑)

```from nonebot_plugin_HttpCat import httpcat_msg,httpcat_pic```
...
``` send(msgs + MessageSegment.image(file=url)) ```

## 🎉 使用
### 指令表
| 指令 | 需要@ | 范围 | 说明 |
|:-----:|:----:|:----:|:----:|
| httpcat + http status code | 否 | 群聊/私聊 | 后加http提示码 |



**注意**

默认情况下, 您应该在指令前加上命令前缀, 通常是 /


### 🧡特别感谢 

omega-miya: https://github.com/Ailitonia/omega-miya 超可爱的Miyabot提供的httpcat思路

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ANGJustinl/nonebot_plugin_HttpCat",
    "name": "nonebot-plugin-HttpCat",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "pip,nonebot2,nonebot,nonebot_plugin",
    "author": "ANGJustinl",
    "author_email": "angjustin@163.com",
    "download_url": "https://files.pythonhosted.org/packages/2d/e7/fc1548094a7e3e6bfaaa2ef755d9915812d207c76a95769c372351857da5/nonebot_plugin_HttpCat-0.0.2.tar.gz",
    "platform": "any",
    "description": "<div align=\"center\">\r\n  \r\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\r\n  <br>\r\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\r\n\r\n\r\n# nonebot_plugin_HttpCat\r\n  \r\n_\u2728Nonebot\u732b\u732bhttp\u72b6\u6001\u7801\u63d2\u4ef6\u2728_\r\n\r\n---\r\n  \r\n<a href=\"./LICENSE\">\r\n    <img src=\"https://img.shields.io/github/license/ANGJustinl/nonebot_plugin_HttpCat\" alt=\"license\">\r\n</a>\r\n<a href=\"https://pypi.python.org/pypi/nonebot_plugin_HttpCat\">\r\n    <img src=\"https://img.shields.io/pypi/v/nonebot_plugin_HttpCat.svg\" alt=\"pypi\">\r\n</a>\r\n<a href=\"https://www.python.org\">\r\n    <img src=\"https://img.shields.io/badge/python-3.7+-blue.svg\" alt=\"python\">\r\n</a>\r\n\r\n---  \r\n </div> \r\n  \r\n## \ud83d\udcbf \u5b89\u88c5\r\n\r\n### 1. nb-cli\u5b89\u88c5\uff08\u63a8\u8350\uff09\r\n\r\nbot\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u6267\u884cnb\u547d\u4ee4\u5b89\u88c5\u63d2\u4ef6\uff0c\u63d2\u4ef6\u914d\u7f6e\u4f1a\u81ea\u52a8\u6dfb\u52a0\u81f3\u914d\u7f6e\u6587\u4ef6 \r\n```\r\nnb plugin install nonebot_plugin_HttpCat\r\n```\r\n### 2. pip\u5b89\u88c5\r\n```\r\npip install nonebot_plugin_HttpCat --upgrade\r\n```  \r\n\u6253\u5f00 nonebot2 \u9879\u76ee\u7684 ```bot.py``` \u6587\u4ef6, \u5728\u5176\u4e2d\u5199\u5165  \r\n\r\n```nonebot.load_plugin('nonebot_plugin_HttpCat')```  \r\n\r\n\u6216\u5728bot\u8def\u5f84```pyproject.toml```\u7684```[tool.nonebot]```\u7684```plugins```\u4e2d\u6dfb\u52a0```nonebot_plugin_HttpCat```\u5373\u53ef  \r\n\r\n### 3.\u5e94\u7528\u601d\u8def\uff08\u5f00\u53d1\u8005\uff09\r\n\r\n\u672c\u5305\u63d0\u4f9b\u4e86\u4e24\u4e2a\u51fd\u6570,\u5206\u522b\u5bf9\u5e94\u4e86httpcat\u7684 \u89e3\u91camsg \u548c \u56fe\u7247url,\u6216\u8bb8\u5927\u5bb6\u53ef\u4ee5\u62ff\u6765\u8ba9http\u62a5\u9519\u4e0d\u518d\u65e0\u804a~\uff08\u7b11\uff09\r\n\r\n```from nonebot_plugin_HttpCat import httpcat_msg,httpcat_pic```\r\n...\r\n``` send(msgs + MessageSegment.image(file=url)) ```\r\n\r\n## \ud83c\udf89 \u4f7f\u7528\r\n### \u6307\u4ee4\u8868\r\n| \u6307\u4ee4 | \u9700\u8981@ | \u8303\u56f4 | \u8bf4\u660e |\r\n|:-----:|:----:|:----:|:----:|\r\n| httpcat + http status code | \u5426 | \u7fa4\u804a/\u79c1\u804a | \u540e\u52a0http\u63d0\u793a\u7801 |\r\n\r\n\r\n\r\n**\u6ce8\u610f**\r\n\r\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b, \u60a8\u5e94\u8be5\u5728\u6307\u4ee4\u524d\u52a0\u4e0a\u547d\u4ee4\u524d\u7f00, \u901a\u5e38\u662f /\r\n\r\n\r\n### \ud83e\udde1\u7279\u522b\u611f\u8c22 \r\n\r\nomega-miya: https://github.com/Ailitonia/omega-miya \u8d85\u53ef\u7231\u7684Miyabot\u63d0\u4f9b\u7684httpcat\u601d\u8def\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "_\u2728Nonebot\u732b\u732bhttp\u72b6\u6001\u7801\u63d2\u4ef6\u2728_",
    "version": "0.0.2",
    "split_keywords": [
        "pip",
        "nonebot2",
        "nonebot",
        "nonebot_plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2de7fc1548094a7e3e6bfaaa2ef755d9915812d207c76a95769c372351857da5",
                "md5": "b9b33d2beeabc3d77584b9cd2b594e66",
                "sha256": "38abe5cc69abcf0f072261472499f48a0f56bc34271902b5d9267d84c25fbaf7"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_HttpCat-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b9b33d2beeabc3d77584b9cd2b594e66",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3220,
            "upload_time": "2023-01-03T01:58:02",
            "upload_time_iso_8601": "2023-01-03T01:58:02.756214Z",
            "url": "https://files.pythonhosted.org/packages/2d/e7/fc1548094a7e3e6bfaaa2ef755d9915812d207c76a95769c372351857da5/nonebot_plugin_HttpCat-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 01:58:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ANGJustinl",
    "github_project": "nonebot_plugin_HttpCat",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-httpcat"
}
        
Elapsed time: 0.24612s