root 2 years ago
commit a7810ce657

@ -6,6 +6,6 @@ source:
type: edit type: edit
tpl: tpl:
default: |- default: |-
{{{author}}} 更新了页面《{{{title}}}》: {{{author}}} 更新了页面: {{{title}}}
{{{summary}}} {{{summary}}}
{{{url}}} {{{url}}}

@ -6,7 +6,6 @@ source:
type: new type: new
tpl: tpl:
default: |- default: |-
{{{author}}} 创建了新页面《{{{title}}}》: {{{author}}} 创建了新页面: {{{title}}}
{{{summary}}} {{{summary}}}
{{{url}}} {{{url}}}

@ -93,7 +93,7 @@ export class RobotManager {
} }
try { try {
robot.sendMessage(targets, currentMsg); await robot.sendMessage(targets, currentMsg);
} catch(err) { } catch(err) {
console.error(`[${channelId}] 无法发送消息到 ${robotId} : `, err); console.error(`[${channelId}] 无法发送消息到 ${robotId} : `, err);
} }

@ -10,8 +10,9 @@ export class Setup {
let maxLength: any = parseInt(args[1]); let maxLength: any = parseInt(args[1]);
let ellipsis: any = undefined; let ellipsis: any = undefined;
if (args.length > 3) { if (args.length > 3) {
return Utils.excerpt(text, parseInt(maxLength), ellipsis); ellipsis = args[2];
} }
return Utils.excerpt(text, parseInt(maxLength), ellipsis);
} }
return args[0]; return args[0];
}); });

@ -45,9 +45,8 @@ export default class QQRobot implements Robot {
} }
return await this.doApiRequest('send_private_msg', { return await this.doApiRequest('send_private_msg', {
bot_id: this.botQQ,
user_id: user, user_id: user,
message: message, message: message
}); });
} }
@ -64,9 +63,8 @@ export default class QQRobot implements Robot {
} }
return await this.doApiRequest('send_group_msg', { return await this.doApiRequest('send_group_msg', {
bot_id: this.botQQ,
group_id: group, group_id: group,
message: message, message: message
}); });
} }

@ -1,9 +1,9 @@
qq: qq:
user: user:
1234567890: 1234567890:
- some_channel_group/* - some_channel_group # 订阅频道组会订阅下一级的全部频道,但是不会订阅更深层级的频道
- some_channel_group2/some_channel - some_channel_group2/some_channel
group: group:
1234567890: 1234567890:
- some_channel_group/* - some_channel_group
- some_channel_group2/some_channel - some_channel_group2/some_channel

Loading…
Cancel
Save