This commit is contained in:
@ -29,12 +29,12 @@ function randomCook(text, data) {
|
||||
function cookInit() {
|
||||
Bot.bot.on(
|
||||
'GroupMessage',
|
||||
new Middleware().groupFilter(cookSubs.groups).done(dealCommon),
|
||||
new Middleware().groupFilter(cookSubs.groups).textProcessor().done(dealCommon),
|
||||
);
|
||||
|
||||
Bot.bot.on(
|
||||
'FriendMessage',
|
||||
new Middleware().friendFilter(cookSubs.users).done(dealCommon),
|
||||
new Middleware().friendFilter(cookSubs.users).textProcessor().done(dealCommon),
|
||||
);
|
||||
Bot.sendMessageToFriend(752753679, '测试');
|
||||
logger('cook 初始化完成')
|
||||
|
Reference in New Issue
Block a user