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_proxy:指定使用的代理地址

例如:

mcver_group_id = [123456, 789012]
mcver_proxy = "http://127.0.0.1:7890"

鸣谢

反馈

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.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_mcversion-0.3.7-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for nonebot_plugin_mcversion-0.3.7.tar.gz
Algorithm Hash digest
SHA256 b4179d8b510a5e1a1f456426ac5316c700064945655bb93bfbe67ba9c3dd6a2c
MD5 51e793ab7673a916bc707b3dac7f196c
BLAKE2b-256 2fc343df37d61aacbf4bf7b86aca2209421dd7d7fba726d9241bb83f020c3b0d

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mcversion-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_mcversion-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e287d5174b984553705c8491c800ebb3e4f3cc717ba4350267ef3a5badb270b5
MD5 e9bef34612235f1b56800f3f8709fff2
BLAKE2b-256 07dd6fab1be52fa32ff47e72eb2f4dab20ca45ac65cc00baabb810cf3f10e94c

See more details on using hashes here.

Supported by

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