Tag: Skype

testingbot部署到azure色时,HTTP 500

从本地git存储库部署bot到Azure – https://docs.microsoft.com/en-us/bot-framework/deploy-bot-local-git 代码: var restify = require('restify'); var builder = require('botbuilder'); var server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function () { }); // Create the chat connector for communicating with the Bot Framework Service var connector = new builder.ChatConnector({ appId: "app-id", appPassword: "app-password" }); // Listen for messages from users server.post('/api/messages', connector.listen()); […]

发送Skype BOT信息错误

我通过https://login.microsoftonline.com/common/oauth2/v2.0/token获得了访问令牌,并使用该标记尝试发送消息https://apis.skype.com/v3/对话/对话/活动/ 。 但是我得到这个错误“401:提供的”OAuth“票证authentication失败。” 这里可能是什么问题

如何更改Bot / Skype通道收到的消息文本格式

机器人仿真程序工作正常的明文响应,但是当我尝试通过Skype做同样的机器人响应; 我不明白,请再试一次 我发现Skype自动格式化电子邮件,将其封装在XMM格式的标签中,我有点被卡住了。 我认为将传入的文本格式更改为纯文本可以解决这个问题。 我发现这在Github上类似的问题,但这是在C#上,我使用Node.JS. 如何将bot / skype频道的默认文本格式更改为纯文本而不是降价,Skype自动格式化不会发生? 根据@ ezequiel-jadib 更新 ,但仍然没有运气。 也许我做错了? // bot.js bot.use(…[logger]); // logger.js module.exports = exports = { receive: (e, next) => { e.textFormat('plain'); logConversation(e); next(); }, send: (e, next) => { logConversation(e); next(); } };