-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to distinguish DMs from messages to rooms? #45
Comments
The first part of the channel ID will start with "D"
|
neat! next up is that this should be wired into slackrtm, probably the message should come with an |
Having a second look at the code in the commit that you've linked, they're not looking for DMs, they're looking for mentions of the bot within regular channel/group messages.
You can get this ID using the auth.test call from slack. Maybe have a .self_id attribute to server? That way we can have the following functions as part of the server object, that people can check with within plugins:
|
The bot's ID is actually available, via the opaque |
the slackrtm library should probably gain two issues:
will do when I have time |
Sparked by: this commit
The text was updated successfully, but these errors were encountered: