Closed seanvree closed 7 years ago
I just started seeing this with a Slack <-> Discord bridge. I'm wondering if Slack updated the API in the last 12 hours or so.
@jheiselman no, it's because I added support for relaying messages of other bots in #213
Could you run with -debug
and tell me if you got more than 1 ```my bot ID is "B285XXXX"```` messages ?
I'm trying the bot to detect his own ID so we can ignore messages of that ID
@42wim yes I did get more than one. If you'd like the full debug output, let me know.
I think the information you want is in b.rtm.Client.info.User.ID
You would think so eh, but unfortunately not, that's the ID of the user that created the bot (or the test-token), not the bot ID itself
Found a way ;-) You can find binaries on https://bintray.com/42wim/nightly/Matterbridge/v0.16.1-23-gdc8743e#files
@42wim thanks that did it!
Just as a Side note - should I have different BOT names for my slack bot and mm bot? Because right now I have my personal account, then I have seanvreebot that I use both on slack and MM.
So like names would be seanvreebotslack and seanvreebotMM?
@seanvree no, doesn't matter you can call them what you want
cool appreciate the work @42wim !
Matterbridge Ver:
version: 0.16.2-dev caaf6f3
mattermost version:
Version: 3.10.0 Database: mysql
expected behavior.
Messages posted to MM channel are mirrored in slack channel
actual behavior.
Messages from a BOT or myself in MM channel are successfly mirrored in Slack Channel, however, are then duplicated back in MM Channel
LOGS
configuration file
Bots are being used on both the Mattermost Side and Slack Side