<div align="center">
<a href="https://v2.nonebot.dev/store">
<img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="logo">
</a>
<br>
<p>
<img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/NoneBotPlugin.svg" width="240" alt="logo">
</p>
</div>
<div align="center">
# nonebot-plugin-a2s-query
*Nonebot2 查询游戏服务器详情*
<a href="./LICENSE">
<img src="https://img.shields.io/github/license/NanakaNeko/nonebot-plugin-a2s-query.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-a2s-query">
<img src="https://img.shields.io/pypi/v/nonebot-plugin-a2s-query.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
</div>
## 介绍
+ 基于value的a2s协议,可查询求生之路、半条命、军团要塞、Counter-Strike: Global Offensive、Counter-Strike 1.6、ARK: Survival Evolved、Rust等游戏
+ 根据游戏服务器ip返回游戏内相关信息
+ 已经实现文字转图,减少风控
## 安装
<details open>
<summary>使用 nb-cli 安装(推荐)</summary>
```bash
nb plugin install nonebot-plugin-a2s-query
```
</details>
<details>
<summary>使用 pip 安装</summary>
```bash
pip intall nonebot-plugin-a2s-query
```
之后打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
```bash
plugins = ["nonebot-plugin-a2s-query"]
```
</details>
## 使用
| 命令 | 权限 | 介绍 | 示例 |
| :--------------------- | :--- | :----------------------------------------------------------- | :----------------------------------------------------------- |
| 查服 \| 查 \| connect | 所有 | 查询服务器ip内详情,不加端口号默认27015 | 查服 测试 \| connect 192.168.0.1:27015 \| 查 192.168.0.1 |
| 加服 \| add | 所有 | 在群里添加一个ip别称,方便查询,需要@机器人(别称和ip中间一定是英文的逗号,中文不会识别) | @bot 加服 测试,192.168.0.1:27015 \| @bot add test,192.168.0.1 |
| 删服 \| delete | 所有 | 删除添加的ip别称, 需要@机器人 | @bot 删服 测试 \| @bot delete test |
| 订阅服 \| list \| 群服 | 所有 | 查询所有别称ip的服务器人数名称 | 群服 \| list \| 群服 |
## 图片示例
### 查服示例图片
![查服](./images/connect.png)
### 订阅服示例图片
![群服](./images/list.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/NanakaNeko/nonebot-plugin-a2s-query",
"name": "nonebot-plugin-a2s-query",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "nonebot2, plugin, a2s, qq, bot",
"author": "\u5948",
"author_email": "flneko@163.com",
"download_url": "https://files.pythonhosted.org/packages/53/27/7d3be183c0fd8f7415cd6f17beddfa38a9305e12404b8fd3789614206373/nonebot_plugin_a2s_query-0.2.0.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <a href=\"https://v2.nonebot.dev/store\">\n <img src=\"https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"logo\">\n </a>\n <br>\n <p>\n <img src=\"https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"logo\">\n </p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-a2s-query\n\n*Nonebot2 \u67e5\u8be2\u6e38\u620f\u670d\u52a1\u5668\u8be6\u60c5*\n\n<a href=\"./LICENSE\">\n <img src=\"https://img.shields.io/github/license/NanakaNeko/nonebot-plugin-a2s-query.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-a2s-query\">\n\t<img src=\"https://img.shields.io/pypi/v/nonebot-plugin-a2s-query.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n\n</div>\n\n## \u4ecb\u7ecd\n\n+ \u57fa\u4e8evalue\u7684a2s\u534f\u8bae\uff0c\u53ef\u67e5\u8be2\u6c42\u751f\u4e4b\u8def\u3001\u534a\u6761\u547d\u3001\u519b\u56e2\u8981\u585e\u3001Counter-Strike: Global Offensive\u3001Counter-Strike 1.6\u3001ARK: Survival Evolved\u3001Rust\u7b49\u6e38\u620f \n+ \u6839\u636e\u6e38\u620f\u670d\u52a1\u5668ip\u8fd4\u56de\u6e38\u620f\u5185\u76f8\u5173\u4fe1\u606f \n+ \u5df2\u7ecf\u5b9e\u73b0\u6587\u5b57\u8f6c\u56fe\uff0c\u51cf\u5c11\u98ce\u63a7 \n\n## \u5b89\u88c5\n\n<details open>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5\uff08\u63a8\u8350\uff09</summary>\n\n```bash\nnb plugin install nonebot-plugin-a2s-query\n```\n</details>\n\n<details>\n<summary>\u4f7f\u7528 pip \u5b89\u88c5</summary>\n\n```bash\npip intall nonebot-plugin-a2s-query\n```\n\n\u4e4b\u540e\u6253\u5f00 nonebot2 \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 pyproject.toml \u6587\u4ef6, \u5728 [tool.nonebot] \u90e8\u5206\u8ffd\u52a0\u5199\u5165\n```bash\nplugins = [\"nonebot-plugin-a2s-query\"]\n```\n</details>\n\n## \u4f7f\u7528\n\n| \u547d\u4ee4 | \u6743\u9650 | \u4ecb\u7ecd | \u793a\u4f8b |\n| :--------------------- | :--- | :----------------------------------------------------------- | :----------------------------------------------------------- |\n| \u67e5\u670d \\| \u67e5 \\| connect | \u6240\u6709 | \u67e5\u8be2\u670d\u52a1\u5668ip\u5185\u8be6\u60c5\uff0c\u4e0d\u52a0\u7aef\u53e3\u53f7\u9ed8\u8ba427015 | \u67e5\u670d \u6d4b\u8bd5 \\| connect 192.168.0.1:27015 \\| \u67e5 192.168.0.1 |\n| \u52a0\u670d \\| add | \u6240\u6709 | \u5728\u7fa4\u91cc\u6dfb\u52a0\u4e00\u4e2aip\u522b\u79f0\uff0c\u65b9\u4fbf\u67e5\u8be2\uff0c\u9700\u8981@\u673a\u5668\u4eba(\u522b\u79f0\u548cip\u4e2d\u95f4\u4e00\u5b9a\u662f\u82f1\u6587\u7684\u9017\u53f7\uff0c\u4e2d\u6587\u4e0d\u4f1a\u8bc6\u522b) | @bot \u52a0\u670d \u6d4b\u8bd5,192.168.0.1:27015 \\| @bot add test,192.168.0.1 |\n| \u5220\u670d \\| delete | \u6240\u6709 | \u5220\u9664\u6dfb\u52a0\u7684ip\u522b\u79f0\uff0c \u9700\u8981@\u673a\u5668\u4eba | @bot \u5220\u670d \u6d4b\u8bd5 \\| @bot delete test |\n| \u8ba2\u9605\u670d \\| list \\| \u7fa4\u670d | \u6240\u6709 | \u67e5\u8be2\u6240\u6709\u522b\u79f0ip\u7684\u670d\u52a1\u5668\u4eba\u6570\u540d\u79f0 | \u7fa4\u670d \\| list \\| \u7fa4\u670d |\n\n## \u56fe\u7247\u793a\u4f8b\n\n### \u67e5\u670d\u793a\u4f8b\u56fe\u7247\n\n![\u67e5\u670d](./images/connect.png)\n\n### \u8ba2\u9605\u670d\u793a\u4f8b\u56fe\u7247\n\n![\u7fa4\u670d](./images/list.png)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "a2s\u67e5\u8be2\u6e38\u620f\u670d\u52a1\u5668\u8be6\u60c5",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/NanakaNeko/nonebot-plugin-a2s-query",
"Repository": "https://github.com/NanakaNeko/nonebot-plugin-a2s-query"
},
"split_keywords": [
"nonebot2",
" plugin",
" a2s",
" qq",
" bot"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c3fe37f11957b7f75c7b95b2341873b553179aafd8e92ba33486ee8e7c991f6e",
"md5": "8247e7004bab4ccda95d49be12d571ee",
"sha256": "9a7f78053e6de226b806ee8d2570bc35c54719cd64f924b9e2889708cdfb2b92"
},
"downloads": -1,
"filename": "nonebot_plugin_a2s_query-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8247e7004bab4ccda95d49be12d571ee",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5706,
"upload_time": "2024-06-29T04:34:50",
"upload_time_iso_8601": "2024-06-29T04:34:50.113906Z",
"url": "https://files.pythonhosted.org/packages/c3/fe/37f11957b7f75c7b95b2341873b553179aafd8e92ba33486ee8e7c991f6e/nonebot_plugin_a2s_query-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "53277d3be183c0fd8f7415cd6f17beddfa38a9305e12404b8fd3789614206373",
"md5": "118957e8311125e3fe5c93531f53832e",
"sha256": "03679c4d47c1e1b0b36f1684578fac48434a2afe2ae1725814247ee772e85913"
},
"downloads": -1,
"filename": "nonebot_plugin_a2s_query-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "118957e8311125e3fe5c93531f53832e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 5282,
"upload_time": "2024-06-29T04:34:52",
"upload_time_iso_8601": "2024-06-29T04:34:52.022793Z",
"url": "https://files.pythonhosted.org/packages/53/27/7d3be183c0fd8f7415cd6f17beddfa38a9305e12404b8fd3789614206373/nonebot_plugin_a2s_query-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-29 04:34:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NanakaNeko",
"github_project": "nonebot-plugin-a2s-query",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nonebot-plugin-a2s-query"
}