nonebot_plugin_mc_server_status


Namenonebot_plugin_mc_server_status JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_mc_server_status
SummaryNonebot2查询MC服务器在线信息插件
upload_time2024-08-18 14:02:15
maintainerNone
docs_urlNone
authornikissXI
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <a href="https://v2.nonebot.dev/store">
  <img src="https://user-images.githubusercontent.com/44545625/209862575-acdc9feb-3c76-471d-ad89-cc78927e5875.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
</p>

<div align="center">

# nonebot_plugin_mc_server_status

_✨ Nonebot2查询MC服务器在线信息插件 ✨_

</div>

<p align="center">
  <a href="https://opensource.org/licenses/MIT">
    <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license">
  </a>
  <a href="https://v2.nonebot.dev/">
    <img src="https://img.shields.io/static/v1?label=nonebot&message=v2rc1%2B&color=green" alt="nonebot2">
  </a>
  <img src="https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue" alt="python">
</p>

## 开发者信息
- nikiss,个人QQ 1299577815,插件反馈QQ群 226462236,插件有问题到群里反馈响应更快哦
- <img width="100" src="https://avatars.githubusercontent.com/u/31379266"/>  

## 简介
使用mcstatus库,支持Java和Bedrock服务器的服务器查询。   

<img width="300" src="https://raw.githubusercontent.com/nikissXI/nonebot_plugins/main/nonebot_plugin_mc_server_status/readme_img/xinxi.jpg"/>

## 安装

使用nb-cli安装
```bash
nb plugin install nonebot_plugin_mc_server_status
```

或者  
直接把插件clone下来放进去plugins文件夹,记得把依赖装上 pip install mcstatus  

## 使用

添加了服务器信息后,会在bot根目录下的data目录创建一个mc_status_data.json文件,用于存储插件信息  
在bot对应的.env文件修改

```bash
# 管理员的QQ号(别问我为什么要另外写)
mc_status_admin_qqnum = [1234, 5678, 6666]

# 可选配置
# 机器人的QQ号列表,如果有多个bot连接,会按照填写的list,左边的机器人QQ优先级最高 1234 > 5678 > 6666,会自动切换
# 如果不填该配置则由第一个连上的bot响应
mc_status_bot_qqnum_list = [1234, 5678, 6666]
```

## 插件命令  
| 指令 | 说明 |
|:-----:|:----:|
| 信息|所有人都能使用,查看当前群添加的服务器状态,需要加命令前缀,默认/|
| 信息数据|查看已添加的群和服务器信息,bot超级管理员用,需要加命令前缀,默认/|
| 添加服务器|字面意思,bot超级管理员用,一个群可以添加多个服务器|
| 删除服务器|字面意思,bot超级管理员用|

## 更新日志
### 2024/8/18 \[v0.3.1]

* 管理员配置支持多个

### 2024/7/30 \[v0.3.0]

* 增加匿名玩家的判断

### 2024/6/25 \[v0.2.20]

* 更新插件元数据

### 2023/2/11 \[v0.2.9]

* 信息和信息数据的增加命令前缀

### 2023/1/24 \[v0.2.8]

* 修复多bot处理bug

### 2023/1/20 \[v0.2.7]

* gocq插件版不支持base64图片发送,改为BytesIO发送服务器图标

### 2023/1/17 \[v0.2.4]

* 又忘记删东西导致无法运行,已修复

### 2023/1/16 \[v0.2.3]

* 最低python版本兼容至3.8

### 2023/1/15 \[v0.2.2]

* 优化多bot逻辑,机器人qq号配置改为可选

### 2023/1/15 \[v0.2.1]

* 插件重构
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_mc_server_status",
    "name": "nonebot_plugin_mc_server_status",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "nikissXI",
    "author_email": "1299577815@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/ad/50/7a598e36ae77005d15d5d072e6ac8bda5094e576bf099f1fc5a949df65ca/nonebot_plugin_mc_server_status-0.3.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\">\n  <img src=\"https://user-images.githubusercontent.com/44545625/209862575-acdc9feb-3c76-471d-ad89-cc78927e5875.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n</p>\n\n<div align=\"center\">\n\n# nonebot_plugin_mc_server_status\n\n_\u2728 Nonebot2\u67e5\u8be2MC\u670d\u52a1\u5668\u5728\u7ebf\u4fe1\u606f\u63d2\u4ef6 \u2728_\n\n</div>\n\n<p align=\"center\">\n  <a href=\"https://opensource.org/licenses/MIT\">\n    <img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"license\">\n  </a>\n  <a href=\"https://v2.nonebot.dev/\">\n    <img src=\"https://img.shields.io/static/v1?label=nonebot&message=v2rc1%2B&color=green\" alt=\"nonebot2\">\n  </a>\n  <img src=\"https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue\" alt=\"python\">\n</p>\n\n## \u5f00\u53d1\u8005\u4fe1\u606f\n- nikiss\uff0c\u4e2a\u4ebaQQ 1299577815\uff0c\u63d2\u4ef6\u53cd\u9988QQ\u7fa4 226462236\uff0c\u63d2\u4ef6\u6709\u95ee\u9898\u5230\u7fa4\u91cc\u53cd\u9988\u54cd\u5e94\u66f4\u5feb\u54e6\n- <img width=\"100\" src=\"https://avatars.githubusercontent.com/u/31379266\"/>  \n\n## \u7b80\u4ecb\n\u4f7f\u7528mcstatus\u5e93\uff0c\u652f\u6301Java\u548cBedrock\u670d\u52a1\u5668\u7684\u670d\u52a1\u5668\u67e5\u8be2\u3002   \n\n<img width=\"300\" src=\"https://raw.githubusercontent.com/nikissXI/nonebot_plugins/main/nonebot_plugin_mc_server_status/readme_img/xinxi.jpg\"/>\n\n## \u5b89\u88c5\n\n\u4f7f\u7528nb-cli\u5b89\u88c5\n```bash\nnb plugin install nonebot_plugin_mc_server_status\n```\n\n\u6216\u8005  \n\u76f4\u63a5\u628a\u63d2\u4ef6clone\u4e0b\u6765\u653e\u8fdb\u53bbplugins\u6587\u4ef6\u5939\uff0c\u8bb0\u5f97\u628a\u4f9d\u8d56\u88c5\u4e0a pip install mcstatus  \n\n## \u4f7f\u7528\n\n\u6dfb\u52a0\u4e86\u670d\u52a1\u5668\u4fe1\u606f\u540e\uff0c\u4f1a\u5728bot\u6839\u76ee\u5f55\u4e0b\u7684data\u76ee\u5f55\u521b\u5efa\u4e00\u4e2amc_status_data.json\u6587\u4ef6\uff0c\u7528\u4e8e\u5b58\u50a8\u63d2\u4ef6\u4fe1\u606f  \n\u5728bot\u5bf9\u5e94\u7684.env\u6587\u4ef6\u4fee\u6539\n\n```bash\n# \u7ba1\u7406\u5458\u7684QQ\u53f7\uff08\u522b\u95ee\u6211\u4e3a\u4ec0\u4e48\u8981\u53e6\u5916\u5199\uff09\nmc_status_admin_qqnum = [1234, 5678, 6666]\n\n# \u53ef\u9009\u914d\u7f6e\n# \u673a\u5668\u4eba\u7684QQ\u53f7\u5217\u8868\uff0c\u5982\u679c\u6709\u591a\u4e2abot\u8fde\u63a5\uff0c\u4f1a\u6309\u7167\u586b\u5199\u7684list\uff0c\u5de6\u8fb9\u7684\u673a\u5668\u4ebaQQ\u4f18\u5148\u7ea7\u6700\u9ad8 1234 > 5678 > 6666\uff0c\u4f1a\u81ea\u52a8\u5207\u6362\n# \u5982\u679c\u4e0d\u586b\u8be5\u914d\u7f6e\u5219\u7531\u7b2c\u4e00\u4e2a\u8fde\u4e0a\u7684bot\u54cd\u5e94\nmc_status_bot_qqnum_list = [1234, 5678, 6666]\n```\n\n## \u63d2\u4ef6\u547d\u4ee4  \n| \u6307\u4ee4 | \u8bf4\u660e |\n|:-----:|:----:|\n| \u4fe1\u606f|\u6240\u6709\u4eba\u90fd\u80fd\u4f7f\u7528\uff0c\u67e5\u770b\u5f53\u524d\u7fa4\u6dfb\u52a0\u7684\u670d\u52a1\u5668\u72b6\u6001\uff0c\u9700\u8981\u52a0\u547d\u4ee4\u524d\u7f00\uff0c\u9ed8\u8ba4/|\n| \u4fe1\u606f\u6570\u636e|\u67e5\u770b\u5df2\u6dfb\u52a0\u7684\u7fa4\u548c\u670d\u52a1\u5668\u4fe1\u606f\uff0cbot\u8d85\u7ea7\u7ba1\u7406\u5458\u7528\uff0c\u9700\u8981\u52a0\u547d\u4ee4\u524d\u7f00\uff0c\u9ed8\u8ba4/|\n| \u6dfb\u52a0\u670d\u52a1\u5668|\u5b57\u9762\u610f\u601d\uff0cbot\u8d85\u7ea7\u7ba1\u7406\u5458\u7528\uff0c\u4e00\u4e2a\u7fa4\u53ef\u4ee5\u6dfb\u52a0\u591a\u4e2a\u670d\u52a1\u5668|\n| \u5220\u9664\u670d\u52a1\u5668|\u5b57\u9762\u610f\u601d\uff0cbot\u8d85\u7ea7\u7ba1\u7406\u5458\u7528|\n\n## \u66f4\u65b0\u65e5\u5fd7\n### 2024/8/18 \\[v0.3.1]\n\n* \u7ba1\u7406\u5458\u914d\u7f6e\u652f\u6301\u591a\u4e2a\n\n### 2024/7/30 \\[v0.3.0]\n\n* \u589e\u52a0\u533f\u540d\u73a9\u5bb6\u7684\u5224\u65ad\n\n### 2024/6/25 \\[v0.2.20]\n\n* \u66f4\u65b0\u63d2\u4ef6\u5143\u6570\u636e\n\n### 2023/2/11 \\[v0.2.9]\n\n* \u4fe1\u606f\u548c\u4fe1\u606f\u6570\u636e\u7684\u589e\u52a0\u547d\u4ee4\u524d\u7f00\n\n### 2023/1/24 \\[v0.2.8]\n\n* \u4fee\u590d\u591abot\u5904\u7406bug\n\n### 2023/1/20 \\[v0.2.7]\n\n* gocq\u63d2\u4ef6\u7248\u4e0d\u652f\u6301base64\u56fe\u7247\u53d1\u9001\uff0c\u6539\u4e3aBytesIO\u53d1\u9001\u670d\u52a1\u5668\u56fe\u6807\n\n### 2023/1/17 \\[v0.2.4]\n\n* \u53c8\u5fd8\u8bb0\u5220\u4e1c\u897f\u5bfc\u81f4\u65e0\u6cd5\u8fd0\u884c\uff0c\u5df2\u4fee\u590d\n\n### 2023/1/16 \\[v0.2.3]\n\n* \u6700\u4f4epython\u7248\u672c\u517c\u5bb9\u81f33.8\n\n### 2023/1/15 \\[v0.2.2]\n\n* \u4f18\u5316\u591abot\u903b\u8f91\uff0c\u673a\u5668\u4ebaqq\u53f7\u914d\u7f6e\u6539\u4e3a\u53ef\u9009\n\n### 2023/1/15 \\[v0.2.1]\n\n* \u63d2\u4ef6\u91cd\u6784",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Nonebot2\u67e5\u8be2MC\u670d\u52a1\u5668\u5728\u7ebf\u4fe1\u606f\u63d2\u4ef6",
    "version": "0.3.1",
    "project_urls": {
        "Documentation": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_mc_server_status#README.md",
        "Homepage": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_mc_server_status",
        "Repository": "https://github.com/nikissXI/nonebot_plugins/tree/main/nonebot_plugin_mc_server_status"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21151a6c8105e38b935c5ef149a398b106c85ea16bf07d8678c958e94deea597",
                "md5": "5d0ac8f2e3c14fcbb1232825ab6efa8d",
                "sha256": "e57a2a79b774614ba579c3abdcc208574348fb7f63b54814747323dec7052f1d"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_mc_server_status-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d0ac8f2e3c14fcbb1232825ab6efa8d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7038,
            "upload_time": "2024-08-18T14:02:14",
            "upload_time_iso_8601": "2024-08-18T14:02:14.415383Z",
            "url": "https://files.pythonhosted.org/packages/21/15/1a6c8105e38b935c5ef149a398b106c85ea16bf07d8678c958e94deea597/nonebot_plugin_mc_server_status-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad507a598e36ae77005d15d5d072e6ac8bda5094e576bf099f1fc5a949df65ca",
                "md5": "2381fc8f6d9339153d223e0060d794f3",
                "sha256": "336376415322342bac86af1b4a506f5d5a9e050f3000cf0b0d70b4f06885f24f"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_mc_server_status-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2381fc8f6d9339153d223e0060d794f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6248,
            "upload_time": "2024-08-18T14:02:15",
            "upload_time_iso_8601": "2024-08-18T14:02:15.898695Z",
            "url": "https://files.pythonhosted.org/packages/ad/50/7a598e36ae77005d15d5d072e6ac8bda5094e576bf099f1fc5a949df65ca/nonebot_plugin_mc_server_status-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-18 14:02:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nikissXI",
    "github_project": "nonebot_plugins",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot_plugin_mc_server_status"
}
        
Elapsed time: 0.29745s