koishi-plugin-ihome-crawler
v1.0.5
Published
自用iHome插件
Maintainers
Readme
koishi-plugin-ihome-crawler
iHome 平台诉求信息爬虫插件,支持直连和 WebVPN 两种访问模式。
功能特性
- 自动获取 iHome 平台诉求列表
- 支持直连和 WebVPN 两种访问模式
- 新诉求自动推送到指定群/频道/用户
- 诉求状态变化和新回复自动通知
- 支持多个推送目标配置
- 数据库持久化存储已追踪的诉求
安装
npm install koishi-plugin-ihome-crawler
# 或
yarn add koishi-plugin-ihome-crawler配置项
| 配置项 | 类型 | 说明 |
|--------|------|------|
| username | string | 统一认证用户名 |
| password | string | 统一认证密码 |
| ssoUrl | string | SSO 登录地址 |
| webvpnUrl | string | WebVPN 地址 |
| ihomeUrl | string | iHome 平台地址 |
| useWebvpn | boolean | 是否使用 WebVPN 模式(校外访问),默认 false |
| pushTargets | array | 推送目标配置列表,默认 [] |
| checkInterval | number | 检查间隔(秒),默认 3600 |
| pushInterval | number | 推送消息间隔(毫秒),默认 1000 |
| enableNotification | boolean | 是否启用新帖子通知,默认 true |
| pages | number | 每次获取的页数,默认 3 |
推送目标配置
每个推送目标包含以下字段:
| 字段 | 类型 | 说明 | |------|------|------| | botId | string | Bot ID | | platform | string | 平台类型(如 onebot、telegram、discord 等) | | targetId | string | 目标 ID(群号/频道ID/用户ID) | | enabled | boolean | 是否启用 | | name | string | 备注名称(可选) |
命令
ihome- 显示插件帮助ihome.check- 手动检查新诉求ihome.status- 查看插件状态ihome.list [page]- 列出最近的诉求ihome.detail <id>- 查看诉求详情
依赖
- 需要数据库服务(如
@koishijs/plugin-database-sqlite)
许可证
MIT
