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 }); }