NoneBot2 plugin for CheckMCNewsupdate
Project description
README
描述
一个基于 NoneBot2 的插件,用于定时获取 Minecraft 官方新闻 与 Minecraft Feedback 平台的最新文章,并在指定的群组内发送消息通知。
功能特点
- 定时从 minecraft.net 拉取新闻文章
- 定时从 Minecraft Feedback 拉取最新文章
- 在指定群组内发送更新通知消息
安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-mcnews
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-mcnews
pdm
pdm add nonebot-plugin-mcnews
poetry
poetry add nonebot-plugin-mcnews
conda
conda install nonebot-plugin-mcnews
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot-plugin-mcnews"]
配置项
可通过 NoneBot2 配置文件(如.env)进行配置:
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
mcnews_debug |
bool | False | 开启调试模式,输出异常堆栈 |
mcnews_group_id |
int / str | [] | 指定自动推送消息的群组 ID |
鸣谢
- nonebot_plugin_apscheduler - NoneBot 的定时任务插件
反馈
- 问题跟踪:GitHub Issues
许可
MIT License.
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_mcnews-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_mcnews-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.10.18 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6081bf4a07d20a441293c8340d40c1d67216245c7a5bf5e2b261ae77a04c7fc
|
|
| MD5 |
ce8b199aa01d6f29d7c2abbe26c5b0b6
|
|
| BLAKE2b-256 |
84286bb6feb160e6c4ee432fae5420033f16ed6b96c45ee10efc35f607d5d989
|
File details
Details for the file nonebot_plugin_mcnews-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_mcnews-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.25.9 CPython/3.10.18 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37584acc4548db57d9d6c31a8e0b4a2c587d67ee5a152c74371050135e220d45
|
|
| MD5 |
dbcb10e562f8f478796c2772e63fa255
|
|
| BLAKE2b-256 |
2a92c309cd5c1cc6d5e55f56ffb1c8f775436c7ef6c25145dc07c786c206f3d8
|