Skip to main content

NoneBot2 plugin for CheckMCNewsupdate

Project description

README

描述

一个基于 NoneBot2 的插件,用于定时获取 Minecraft 官方新闻 与 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_proixes str None 代理设置
mcnews_group_id int / str [] 指定自动推送消息的群组 ID
mcnews_translate bool False 是否启用标题翻译功能(使用百度翻译API)
mcnews_translate_appid str None 百度翻译appid
mcnews_translate_appkey str None 百度翻译appkey
mcnews_translate_needIntervene int 0 百度翻译是否使用术语库,0-不启用,1-启用

鸣谢

反馈

许可

MIT License.

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_mcnews-0.2.1.tar.gz (5.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_mcnews-0.2.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_mcnews-0.2.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_mcnews-0.2.1.tar.gz
  • Upload date:
  • Size: 5.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_mcnews-0.2.1.tar.gz
Algorithm Hash digest
SHA256 db647d765db258c753d58c1ec2e0a52174abadc7fbb8d26055bd0ef1416e73f7
MD5 7ee2995b55b3f3e3ac2eae59858dcf6d
BLAKE2b-256 007c132ae39ad0f00ea807d8e4aa120dbec0ab462e87cd05e989d0a0f1059f72

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mcnews-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_mcnews-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6657622e7bb3ec368549a6b53217c7d45cfc09b53099ea77cfafef1737ef876d
MD5 5f6bd19a6e7f3818047ada00e87e208b
BLAKE2b-256 b8372c4bc17a4508b70b6b58db060688ab62343a8d1a8300e3805f93bfe501e2

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