From 961b9bc86cb5c2a1e9a52d9f3a5b21f75c75e9d5 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Wed, 21 Sep 2022 13:43:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8D=8F=E8=AE=AE=E5=88=B0go?= =?UTF-8?q?-cqhttp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- channels/isekaiwiki/admin/autoReview.yml | 6 +++--- channels/isekaiwiki/admin/needReview.yml | 4 ++-- channels/isekaiwiki/editPage.yml | 6 +++--- channels/isekaiwiki/newPage.yml | 6 +++--- src/robot/QQRobot.ts | 6 ++---- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/channels/isekaiwiki/admin/autoReview.yml b/channels/isekaiwiki/admin/autoReview.yml index 95b1e86..25ebaa9 100644 --- a/channels/isekaiwiki/admin/autoReview.yml +++ b/channels/isekaiwiki/admin/autoReview.yml @@ -6,6 +6,6 @@ source: type: autoReview tpl: default: |- - {{data.author}} 更新了新页面: {{data.title}} - {{data.summary}} - {{data.result}} + {{{author}}} 更新了新页面: {{{title}}} + {{{summary}}} + {{{result}}} diff --git a/channels/isekaiwiki/admin/needReview.yml b/channels/isekaiwiki/admin/needReview.yml index 0ef04fe..196ce64 100644 --- a/channels/isekaiwiki/admin/needReview.yml +++ b/channels/isekaiwiki/admin/needReview.yml @@ -7,5 +7,5 @@ source: tpl: default: |- Review队列更新: - {{data.author}} 更新了新页面: {{data.title}} - {{data.summary}} + {{{author}}} 更新了页面: {{{title}}} + {{{summary}}} diff --git a/channels/isekaiwiki/editPage.yml b/channels/isekaiwiki/editPage.yml index 3b2a693..5d1a120 100644 --- a/channels/isekaiwiki/editPage.yml +++ b/channels/isekaiwiki/editPage.yml @@ -6,6 +6,6 @@ source: type: edit tpl: default: |- - {{data.author}} 更新了页面: {{data.title}} - {{data.summary}} - {{data.url}} + {{{author}}} 更新了页面: {{{title}}} + {{{summary}}} + {{{url}}} diff --git a/channels/isekaiwiki/newPage.yml b/channels/isekaiwiki/newPage.yml index 867490c..e6b4986 100644 --- a/channels/isekaiwiki/newPage.yml +++ b/channels/isekaiwiki/newPage.yml @@ -6,6 +6,6 @@ source: type: new tpl: default: |- - {{data.author}} 创建了新页面: {{data.title}} - {{data.summary}} - {{data.url}} + {{{author}}} 创建了新页面: {{{title}}} + {{{summary}}} + {{{url}}} diff --git a/src/robot/QQRobot.ts b/src/robot/QQRobot.ts index f55a8f8..28a930c 100644 --- a/src/robot/QQRobot.ts +++ b/src/robot/QQRobot.ts @@ -45,9 +45,8 @@ export default class QQRobot implements Robot { } return await this.doApiRequest('send_private_msg', { - bot_id: this.botQQ, user_id: user, - message: message, + message: message }); } @@ -64,9 +63,8 @@ export default class QQRobot implements Robot { } return await this.doApiRequest('send_group_msg', { - bot_id: this.botQQ, group_id: group, - message: message, + message: message }); }