从笔记本电脑的文件夹发送带有文字的欢迎文字

时间:2018-08-17 17:15:54

标签: javascript node.js azure botframework

自从他打开bot-builder以来,这段代码向用户发送了一条消息,但是我需要对其进行更改,以便用户可以从我的文件夹中获得带有图像的欢迎文本,例如C / Desktop /....。

请帮助我解决这个问题。

我的代码如下:

//Sends greeting message when the bot is first added to a conversation
bot.on('conversationUpdate', function (message) {
    if (message.membersAdded) {
        message.membersAdded.forEach(function (identity) {
            if (identity.id === message.address.bot.id) {
                var reply = new builder.Message()
                    .address(message.address)
                    .text('Hi! I am ImageCaption Bot. I can understand the content of any image and try to describe it as well as any human. Try sending me an image or an image URL.');
                bot.send(reply);
            }
        });
    }
});

0 个答案:

没有答案