Skip to content

中间件(use)

字数
36 字
阅读时间
1 分钟

介绍:

js
import 
karin
from 'node-karin'
export const
middleware
=
karin
.
use
('forwardMsg', async (
bot
,
contact
,
element
,
next
,
exit
) => {
console
.
log
(
contact
.
scene
)
console
.
log
(
element
)
return
exit
()
}, {
adapter
: ['ICQQ'] })
解决方案
适配器
其他
2024 KarinJS. All Rights Reserved.