Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

koishi-plugin-worldnews

lumia.wang345MIT1.2.0TypeScript support: included

一个为 Koishi 设计的每日新闻插件,用于获取“60秒读懂世界”新闻图。

koishi, plugin, news, daily, zaobao, 新闻, 早报

readme

koishi-plugin-worldnews

npm license

一个为 Koishi 设计的每日新闻插件。每天早上发送一张“60秒读懂世界”新闻图。

🚀 安装

通过 Koishi 插件市场搜索 news-fetcher 并安装。

或者,在你的 Koishi 项目根目录下执行:

npm install koishi-plugin-worldnews

📝 使用

启用插件后,向机器人发送以下指令:

  • news: 获取最新的每日早报图片。

机器人将会回复一张包含今日新闻的图片。

⚙️ 配置

在 Koishi 控制台的插件配置页面进行设置。

  • api_address: 新闻 API 的地址。默认为 https://v3.alapi.cn/api/zaobao
  • token: 你的 Alapi Token。此项为必填项,请前往 Alapi 获取。

📄 许可证

本插件使用 MIT 许可证。