按钮在bot回复中工作,但在mochawesome #bot应答中未定义
样例对讲机#bot按钮销邮寄器
#me Pin Mailer
#bot按钮拾取回菜单
#我捡起来
但在未定义的机器人响应中,我使用的是
波蒂克利跑得很火辣。
发布于 2020-06-29 08:13:43
目前,Botium中令人毛骨悚然的记者只处理文本消息。
请参阅Github储存库
...
const messageLog = []
const attachmentsLog = []
const listenerMe = (container, msg) => {
messageLog.push('#me: ' + msg.messageText)
if (msg.attachments) attachmentsLog.push(...msg.attachments)
}
const listenerBot = (container, msg) => {
messageLog.push('#bot: ' + msg.messageText)
if (msg.attachments) attachmentsLog.push(...msg.attachments)
}
const listenerAttachments = (container, attachment) => {
attachmentsLog.push(attachment)
}
driver.on('MESSAGE_SENTTOBOT', listenerMe)
driver.on('MESSAGE_RECEIVEDFROMBOT', listenerBot)
driver.on('MESSAGE_ATTACHMENT', listenerAttachments)
...https://stackoverflow.com/questions/62579331
复制相似问题