我在安排skype通知时遇到了一些问题。
错误:
(node:3720) UnhandledPromiseRejectionWarning: TypeError: Cannot perform 'get' on a proxy that has been revoked
at CronJob.<anonymous> (C:\bots\clean\bot.js:101:43)
at CronJob.fireOnTick (C:\bots\clean\node_modules\cron\lib\cron.js:554:23)
at Timeout.callbackWr
我已经使用VS代码的Toolkit扩展创建了一个新的Bot,当我在Bot模拟器中运行代码进行本地测试时,卡片是不可见的。即使我运行默认代码,卡片也不会呈现。如何解决这个问题并在本地测试机器人?
teamsBot.js
let txt = context.activity.text;
const removedMentionText = TurnContext.removeRecipientMention(context.activity);
if (removedMentionText) {
// Remove the line break
使用,我想使用Block发送一个响应到Slack通道。我尝试用JSON附件创建响应,但是bot返回:
--机器人遇到了一个错误或错误。若要继续运行此bot,请修复bot源代码。
# SendActivity_pTmt7x()
[Activity
Attachments = ${json(SendActivity_pTmt7x_attachment_R1WWzr())}
]
# SendActivity_pTmt7x_attachment_R1WWzr()
> To learn more about the LG file format, read the documenta
目前使用的是Microsfot BotBuilder V4 NodeJs SDK中的OAuthPrompt。OAuthPrompt主要用于机器人与Azure的身份验证,但是在通过机器人登录azure之后,我无法移动到瀑布对话框中的下一个功能,直到我向机器人发送另一条消息。如果我在登录后发送消息,则会调用continueDialog(),因此会调用瀑布对话框中的下一个函数。
如何在不向机器人发送另一个消息的情况下自动移动到瀑布对话框中的下一个函数?
/**
* Waterfall step that prompts the user to login if they have no
我有一个通知对话框要主动调用..。
例如:
Bot: Hi, you have an event scheduled in next 15 mts... blah blah
Bot: would you want me to email the details?
User input: yes/no
Bot: Great!
这是一个简单的瀑布对话..。step1通知并及时确认。step2。进程用户输入。
现在,这个对话框是主动启动的。第一步有效。然而,dialogContext / dialogStack并没有被保存,当用户说是的时候,它将进入主dailog,而不是这个应该在堆栈顶部的主动对话
我有以下代码: import { ActivityTypes, CardFactory, TurnContext } from "botbuilder";
export class MyBot {
/**
* Handles incoming activity, received from a user, processes it, and replies as needed
* @param {TurnContext} context on turn context object.
*/
public onTurn = asy