Skip to content

上下文(context)

字数
74 字
阅读时间
1 分钟

介绍:

js
import 
karin
from 'node-karin'
export const
context
=
karin
.
command
(/^#上下文$/, async (
e
) => {
/** 方法实现 */
e
.
reply
('请回复一条消息')
const
context
= await
karin
.
ctx
(
e
, {
userId
: '123456789',
reply
: true,
time
: 180,
replyMsg
: '超时了。。。' })
e
.
reply
('你的回复内容是:' +
context
.
msg
)
return true })
解决方案
适配器
其他
2024 KarinJS. All Rights Reserved.