Commit 6334100e authored by nanahira's avatar nanahira

readme

parent e1daf1ba
......@@ -10,22 +10,25 @@
npm install koishi-plugin-autopic koishi-plugin-pics
```
需要独立安装 `koishi-plugin-pics` 插件,并完成配置。
需要独立安装 [koishi-plugin-pics](https://www.npmjs.com/package/koishi-plugin-pics) 插件,并完成配置。
## 配置
部分配置见 [koishi-schedule-send](https://www.npmjs.com/package/koishi-schedule-send) 的定义。
```yaml
# koishi.yaml
plugins:
autopic:
instances:
- cron: '18 13 * * * *'
interval: 30000 # cron 和 interval 选一个即可
immediate: false # 是否立即发送
sourceTags: # 图源标签
- sourceTags: # 图源标签,见 koishi-plugin-pics
- anime
picTags: [] # 图片标签
targets: # 见 koishi-target-def 的定义
picTags: [] # 图片标签,见 koishi-plugin-pics
# 下列配置详见 koishi-schedule-send
cron: '18 13 * * * *'
interval: 30000
immediate: false
targets:
- bot: 'onebot:1111111111'
channels:
- channelId: '222222222'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment