🦄 refactor: 更新撤回问题

This commit is contained in:
zhiyu1998 2022-11-25 19:55:21 +08:00
parent 9c7d7869f8
commit 823669e7d1
3 changed files with 8 additions and 5 deletions

View File

@ -24,6 +24,8 @@ function initMongo () {
})
}
const mongo = initMongo()
// 60s后撤回
const recallTime = 109
export class mystery extends plugin {
constructor () {
@ -241,14 +243,15 @@ export class mystery extends plugin {
await mongo.then(conn => {
return conn.aggregate([{ $sample: { size: MAX_SIZE } }]).toArray()
}).then((result) => {
console.log(result)
result.forEach((item) => {
result.forEach(async (item) => {
images.push({
message: segment.image(item.url), ...template
})
})
})
return !!(await this.reply(await Bot.makeForwardMsg(images), false, 60))
return !!(await this.reply(await Bot.makeForwardMsg(images), false, {
recallMsg: recallTime
}))
}
// 正则:获取图片

View File

@ -5,7 +5,7 @@
更改单个组件<span class="cmd">#任助理</span>架构为插件架构,
添加<span class="cmd">#R帮助</span>获取插件帮助,
添加<span class="cmd">#R版本</span>获取插件版本,
更新风控缓解、重构系统文件
更新风控缓解、重构系统文件、增加部分接口撤回操作
添加<span class="cmd">抖音</span>实时监听分享链接,
],
}