Skip to main content

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"]

使用

  1. 使用 mcver , mcversion ,MC版本 来获取当前最新MC版本
  2. 程序会每分钟自动检查 Minecraft 是否有新版本,若有则会在指定的群组内发送消息。

配置

在配置文件中必须进行以下设置:

  • mcver_group_id:指定检查 Minecraft 更新后发送消息的群组 ID。
mcver_group_id = [123456, 789012]

鸣谢

反馈

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot-plugin-mcversion-0.3.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_mcversion-0.3.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page