nonebot_plugin_mc_watcher


Namenonebot_plugin_mc_watcher JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/Lonely-Sails/nonebot-plugin-mc-watcher
Summary一个适用于监控多服务器的 Motd 工具。
upload_time2024-10-19 00:27:48
maintainerNone
docs_urlNone
authorLonely-Sails
requires_python<4.0,>=3.8
licenseGPL3
keywords nonebot nonebot2 mc minecraft onebot
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>
</div>

<div align="center">

# nonebot-plugin-mc-watcher

_✨ 一款基于 Motd 监控多个 Minecraft 服务器的 QQ 机器人插件。 ✨_

</div>

## 📖 介绍

本插件可以帮助你监控多个 Minecraft 服务器的状态,并通过 QQ 机器人发送提醒,并且无需额外装任何插件或模组。目前已经实现的功能如下:

- `/mc` 或 `/minecraft` 指令,查看服务器状态。
- 监控多个 Minecraft 服务器的状态,并且发送提醒。

## 💿 安装

你可以使用 `nb plugin install nonebot_plugin_mc_watcher` 来安装此插件。

## ⚙️ 配置

在 NoneBot2 项目的`.env`文件中添加下表中的必填配置

|            配置项             | 必填 |  默认值  |              说明              |
|:--------------------------:|:--:|:-----:|:----------------------------:|
|     minecraft_servers      | 是  |   无   |    要监控的服务器名称和对应的地址(一个字典)     |
| minecraft_update_interval  | 否  |  30   | 向 Minecraft 服务器发送 Motd 请求的间隔 |
| minecraft_broadcast_server | 否  | True  |        是否广播服务器开启/关闭消息        |
| minecraft_broadcast_player | 否  | False |       是否广播服务器玩家离开/加入消息       |
| minecraft_broadcast_groups | 否  |  \[]  |  广播的 QQ 群号列表(若为空则上面的两个不生效)   |

## 🎉 使用

可以在任意群里发送 `/mc` 或 `/minecraft` 指令来查看所有服务器状态。

### 指令表

|       名称       | 权限 | 说明         |
|:--------------:|:--:|:-----------|
| mc / minecraft | 无  | 查看所有的服务器状态 |

## 🙏 鸣谢

> [mcproto](https://pypi.org/project/mcproto/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Lonely-Sails/nonebot-plugin-mc-watcher",
    "name": "nonebot_plugin_mc_watcher",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "nonebot, nonebot2, mc, minecraft, onebot",
    "author": "Lonely-Sails",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/bf/b4/03d73758fdaea5864cf5bd81a2aed797c6a59c0586a47cdaee22cafb78ee/nonebot_plugin_mc_watcher-1.0.5.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\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>\n  <br>\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-mc-watcher\n\n_\u2728 \u4e00\u6b3e\u57fa\u4e8e Motd \u76d1\u63a7\u591a\u4e2a Minecraft \u670d\u52a1\u5668\u7684 QQ \u673a\u5668\u4eba\u63d2\u4ef6\u3002 \u2728_\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u672c\u63d2\u4ef6\u53ef\u4ee5\u5e2e\u52a9\u4f60\u76d1\u63a7\u591a\u4e2a Minecraft \u670d\u52a1\u5668\u7684\u72b6\u6001\uff0c\u5e76\u901a\u8fc7 QQ \u673a\u5668\u4eba\u53d1\u9001\u63d0\u9192\uff0c\u5e76\u4e14\u65e0\u9700\u989d\u5916\u88c5\u4efb\u4f55\u63d2\u4ef6\u6216\u6a21\u7ec4\u3002\u76ee\u524d\u5df2\u7ecf\u5b9e\u73b0\u7684\u529f\u80fd\u5982\u4e0b\uff1a\n\n- `/mc` \u6216 `/minecraft` \u6307\u4ee4\uff0c\u67e5\u770b\u670d\u52a1\u5668\u72b6\u6001\u3002\n- \u76d1\u63a7\u591a\u4e2a Minecraft \u670d\u52a1\u5668\u7684\u72b6\u6001\uff0c\u5e76\u4e14\u53d1\u9001\u63d0\u9192\u3002\n\n## \ud83d\udcbf \u5b89\u88c5\n\n\u4f60\u53ef\u4ee5\u4f7f\u7528 `nb plugin install nonebot_plugin_mc_watcher` \u6765\u5b89\u88c5\u6b64\u63d2\u4ef6\u3002\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u5728 NoneBot2 \u9879\u76ee\u7684`.env`\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u8868\u4e2d\u7684\u5fc5\u586b\u914d\u7f6e\n\n|            \u914d\u7f6e\u9879             | \u5fc5\u586b |  \u9ed8\u8ba4\u503c  |              \u8bf4\u660e              |\n|:--------------------------:|:--:|:-----:|:----------------------------:|\n|     minecraft_servers      | \u662f  |   \u65e0   |    \u8981\u76d1\u63a7\u7684\u670d\u52a1\u5668\u540d\u79f0\u548c\u5bf9\u5e94\u7684\u5730\u5740\uff08\u4e00\u4e2a\u5b57\u5178\uff09     |\n| minecraft_update_interval  | \u5426  |  30   | \u5411 Minecraft \u670d\u52a1\u5668\u53d1\u9001 Motd \u8bf7\u6c42\u7684\u95f4\u9694 |\n| minecraft_broadcast_server | \u5426  | True  |        \u662f\u5426\u5e7f\u64ad\u670d\u52a1\u5668\u5f00\u542f/\u5173\u95ed\u6d88\u606f        |\n| minecraft_broadcast_player | \u5426  | False |       \u662f\u5426\u5e7f\u64ad\u670d\u52a1\u5668\u73a9\u5bb6\u79bb\u5f00/\u52a0\u5165\u6d88\u606f       |\n| minecraft_broadcast_groups | \u5426  |  \\[]  |  \u5e7f\u64ad\u7684 QQ \u7fa4\u53f7\u5217\u8868\uff08\u82e5\u4e3a\u7a7a\u5219\u4e0a\u9762\u7684\u4e24\u4e2a\u4e0d\u751f\u6548\uff09   |\n\n## \ud83c\udf89 \u4f7f\u7528\n\n\u53ef\u4ee5\u5728\u4efb\u610f\u7fa4\u91cc\u53d1\u9001 `/mc` \u6216 `/minecraft` \u6307\u4ee4\u6765\u67e5\u770b\u6240\u6709\u670d\u52a1\u5668\u72b6\u6001\u3002\n\n### \u6307\u4ee4\u8868\n\n|       \u540d\u79f0       | \u6743\u9650 | \u8bf4\u660e         |\n|:--------------:|:--:|:-----------|\n| mc / minecraft | \u65e0  | \u67e5\u770b\u6240\u6709\u7684\u670d\u52a1\u5668\u72b6\u6001 |\n\n## \ud83d\ude4f \u9e23\u8c22\n\n> [mcproto](https://pypi.org/project/mcproto/)\n",
    "bugtrack_url": null,
    "license": "GPL3",
    "summary": "\u4e00\u4e2a\u9002\u7528\u4e8e\u76d1\u63a7\u591a\u670d\u52a1\u5668\u7684 Motd \u5de5\u5177\u3002",
    "version": "1.0.5",
    "project_urls": {
        "Documentation": "https://github.com/Lonely-Sails/nonebot-plugin-mc-watcher#readme",
        "Homepage": "https://github.com/Lonely-Sails/nonebot-plugin-mc-watcher",
        "Repository": "https://github.com/Lonely-Sails/nonebot-plugin-mc-watcher"
    },
    "split_keywords": [
        "nonebot",
        " nonebot2",
        " mc",
        " minecraft",
        " onebot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61916294933440d65f5c52d7debeaaf410df7dd6009ae4c0c47a4a02052ae14c",
                "md5": "fbdd953c516b8f696b26e581016ad942",
                "sha256": "2090053230a5976b9c3658e1ed3bda29de8a16fd3372ebece2e3a5a90a0c12f4"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_mc_watcher-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fbdd953c516b8f696b26e581016ad942",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 18466,
            "upload_time": "2024-10-19T00:27:46",
            "upload_time_iso_8601": "2024-10-19T00:27:46.400516Z",
            "url": "https://files.pythonhosted.org/packages/61/91/6294933440d65f5c52d7debeaaf410df7dd6009ae4c0c47a4a02052ae14c/nonebot_plugin_mc_watcher-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bfb403d73758fdaea5864cf5bd81a2aed797c6a59c0586a47cdaee22cafb78ee",
                "md5": "1b99e58022046d67965c61298d316f07",
                "sha256": "48f2baa4efc1a5651b0098bd7d6c34a5e059cfa07ee9a8d0d966d14244834eb4"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_mc_watcher-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1b99e58022046d67965c61298d316f07",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 17063,
            "upload_time": "2024-10-19T00:27:48",
            "upload_time_iso_8601": "2024-10-19T00:27:48.220925Z",
            "url": "https://files.pythonhosted.org/packages/bf/b4/03d73758fdaea5864cf5bd81a2aed797c6a59c0586a47cdaee22cafb78ee/nonebot_plugin_mc_watcher-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-19 00:27:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Lonely-Sails",
    "github_project": "nonebot-plugin-mc-watcher",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot_plugin_mc_watcher"
}
        
Elapsed time: 0.31932s