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