mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🦄 refactor: 更新撤回问题
This commit is contained in:
parent
9c7d7869f8
commit
823669e7d1
@ -24,6 +24,8 @@ function initMongo () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const mongo = initMongo()
|
const mongo = initMongo()
|
||||||
|
// 60s后撤回
|
||||||
|
const recallTime = 109
|
||||||
|
|
||||||
export class mystery extends plugin {
|
export class mystery extends plugin {
|
||||||
constructor () {
|
constructor () {
|
||||||
@ -241,14 +243,15 @@ export class mystery extends plugin {
|
|||||||
await mongo.then(conn => {
|
await mongo.then(conn => {
|
||||||
return conn.aggregate([{ $sample: { size: MAX_SIZE } }]).toArray()
|
return conn.aggregate([{ $sample: { size: MAX_SIZE } }]).toArray()
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
console.log(result)
|
result.forEach(async (item) => {
|
||||||
result.forEach((item) => {
|
|
||||||
images.push({
|
images.push({
|
||||||
message: segment.image(item.url), ...template
|
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
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 正则:获取图片
|
// 正则:获取图片
|
||||||
|
@ -83,7 +83,7 @@ export class tools extends plugin {
|
|||||||
fetch(tiktokApi)
|
fetch(tiktokApi)
|
||||||
.then(resp => resp.json())
|
.then(resp => resp.json())
|
||||||
.then(json => {
|
.then(json => {
|
||||||
this.downloadVideo(json.wm_video_url.replace("https","http")).then(video => {
|
this.downloadVideo(json.wm_video_url.replace("https", "http")).then(video => {
|
||||||
e.reply(segment.video(`${this.defaultPath}${this.e.group_id || this.e.user_id}/temp.mp4`))
|
e.reply(segment.video(`${this.defaultPath}${this.e.group_id || this.e.user_id}/temp.mp4`))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
更改单个组件<span class="cmd">#任助理</span>架构为插件架构,
|
更改单个组件<span class="cmd">#任助理</span>架构为插件架构,
|
||||||
添加<span class="cmd">#R帮助</span>获取插件帮助,
|
添加<span class="cmd">#R帮助</span>获取插件帮助,
|
||||||
添加<span class="cmd">#R版本</span>获取插件版本,
|
添加<span class="cmd">#R版本</span>获取插件版本,
|
||||||
更新风控缓解、重构系统文件
|
更新风控缓解、重构系统文件、增加部分接口撤回操作
|
||||||
添加<span class="cmd">抖音</span>实时监听分享链接,
|
添加<span class="cmd">抖音</span>实时监听分享链接,
|
||||||
],
|
],
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user