Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

How to detect messages by Slack? #76

Open
GenieTim opened this issue May 28, 2018 · 1 comment
Open

How to detect messages by Slack? #76

GenieTim opened this issue May 28, 2018 · 1 comment

Comments

@GenieTim
Copy link

How can I detect messages such as "xy has joined the channel", "xy set the channel purpose", and similar, which are not really composed by a person but rather Slack? Unfortunately, the username and userId given in SimpleMessage are the same, no matter if its a message from a human being or Slack in the name of the human being. Is there a sensible way to detect what kind of message it is?

@GenieTim
Copy link
Author

A workaround I found, in case anyone wonders about this too: If you do not give the application the rights to read the Usernames, the messages generally start with "<U" followed by some User ID. You can filter out all Messages beginning with this string to get rid of them...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant