NoneBot2 plugin for CheckMCupdate
Project description
README
描述
该项目是一个使用 Python 编写的简单程序,用于获取 Minecraft 最新版本信息并定时检查更新,并在指定的群组内发送消息通知。
功能特点
- 获取最新的 Minecraft 版本信息
- 定时检查 Minecraft 是否有新版本
- 在指定群组内发送更新通知消息
安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-mcversion
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-mcversion
pdm
pdm add nonebot-plugin-mcversion
poetry
poetry add nonebot-plugin-mcversion
conda
conda install nonebot-plugin-mcversion
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-mcversion"]
使用
- 使用
mcver,mcversion,MC版本来获取当前最新MC版本 - 程序会每分钟自动检查 Minecraft 是否有新版本,若有则会在指定的群组内发送消息。
配置
在配置文件中必须进行以下设置:
mcver_group_id:指定检查 Minecraft 更新后发送消息的群组 ID。mcver_proxy:指定使用的代理地址
例如:
mcver_group_id = [123456, 789012]
mcver_proxy = "http://127.0.0.1:7890"
鸣谢
- nonebot-plugin-apscheduler - NoneBot 的定时任务插件
反馈
- 问题跟踪:GitHub Issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_mcversion-0.3.7.tar.gz.
File metadata
- Download URL: nonebot_plugin_mcversion-0.3.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.2 CPython/3.10.19 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4179d8b510a5e1a1f456426ac5316c700064945655bb93bfbe67ba9c3dd6a2c
|
|
| MD5 |
51e793ab7673a916bc707b3dac7f196c
|
|
| BLAKE2b-256 |
2fc343df37d61aacbf4bf7b86aca2209421dd7d7fba726d9241bb83f020c3b0d
|
File details
Details for the file nonebot_plugin_mcversion-0.3.7-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_mcversion-0.3.7-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.2 CPython/3.10.19 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e287d5174b984553705c8491c800ebb3e4f3cc717ba4350267ef3a5badb270b5
|
|
| MD5 |
e9bef34612235f1b56800f3f8709fff2
|
|
| BLAKE2b-256 |
07dd6fab1be52fa32ff47e72eb2f4dab20ca45ac65cc00baabb810cf3f10e94c
|