mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-12-06 02:11:56 +00:00
✨ feat: 新增携带 dy 评论 [#IACU74]
1. 新增评论,默认不开启,可以自己配置后开启
This commit is contained in:
parent
4ed06a0eee
commit
0c743cdc0f
@ -331,11 +331,7 @@ export class tools extends plugin {
|
|||||||
}
|
}
|
||||||
// 如果开启评论的就调用
|
// 如果开启评论的就调用
|
||||||
if (this.douyinComments) {
|
if (this.douyinComments) {
|
||||||
const comments = (await this.douyinComment(douId)).unshift({
|
const comments = await this.douyinComment(douId);
|
||||||
message: "前20条热门评论",
|
|
||||||
nickname: this.e.sender.card || this.e.user_id,
|
|
||||||
user_id: this.e.user_id,
|
|
||||||
});
|
|
||||||
e.reply(await Bot.makeForwardMsg(comments));
|
e.reply(await Bot.makeForwardMsg(comments));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user