Microsoft Bot Framework Bot在Slack中重复响应 [英] Microsoft Bot Framework Bot duplicate responses in Slack

查看:85
本文介绍了Microsoft Bot Framework Bot在Slack中重复响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在RoodDialog.cs代码中有一个简单的代码来测试漫游器响应:

I have a simple code to test bot responses in my RoodDialog.cs code:

    if (activity.Text.Trim().ToLower() == "--hi")
    {
        IMessageActivity replyMessage = context.MakeMessage();
        replyMessage.Text = $"Hello {activity.From.Name}";
        await context.PostAsync(replyMessage);
    }

在Skype,Emulator和Facebook Messenger中可以正常工作,但是在Slack中发送重复的响应消息("Hello {Name}").

Works as expected in Skype, Emulator and Facebook Messenger, however sends duplicate response messages ("Hello {Name}") in Slack.

我认为这是Slack配置或Bot Framework问题.有人看到并解决了吗?

I think its either Slack configuration or a Bot Framework issue. Anyone seen and resolved this?

谢谢

推荐答案

感谢某些 Howdy开发人员我找到了问题.

Thanks to some Howdy developers I found the issue.

当机器人已被授权给团队,然后其他人进入并再次授权该机器人时,就会发生这种情况.发生这种情况时,似乎有两个机器人在运行,然后使用相同的RTM连接两次发布到该频道.

It happens when the bot has already been authorized to the team, and then someone else comes in and authorizes the bot again. When that happens, it seems there are two bots running that then use the same RTM connection to post to the channel twice.

我不知道如何在同一个Slack客户端中获得2个机器人.但是一旦我删除并重新安装了我的漫游器,它便开始按预期运行.

I don't know how I got 2 bots in same Slack client. but once I removed and reinstalled my bot it started working as expected.

同一问题导致了另一种症状:

Same issue is causing this other symptom: Microsoft Bot Framework IDialogContext.Call() not working when using Slack

这篇关于Microsoft Bot Framework Bot在Slack中重复响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆