You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
When you use a slack bot with 'client' permission (permission to see all messages the user sees and say stuff on behalf of the user), there's currently a bug where the bot doesn't hear the message of the owning user, since the ID is considered to be the user's ID.
I've fixed this in #268 by checking for presence of bot_id in the message, if the user id matches.This ensures a client bot won't hear itself, but will hear it's owner.
An additional fix would be to also check for ANY presence of bot_id if you don't want bots to talk to eachother.
// Background
I used botkit to build an RTM listener that allows people to connect with client privileges, spawns a bot for each of those users, which will reply to certain keywords. This enables bot answers based on context, even in private chats. And you never have to invite an actual bot anywhere. You are the bot.
The text was updated successfully, but these errors were encountered:
When you use a slack bot with 'client' permission (permission to see all messages the user sees and say stuff on behalf of the user), there's currently a bug where the bot doesn't hear the message of the owning user, since the ID is considered to be the user's ID.
I've fixed this in #268 by checking for presence of bot_id in the message, if the user id matches.This ensures a client bot won't hear itself, but will hear it's owner.
An additional fix would be to also check for ANY presence of bot_id if you don't want bots to talk to eachother.
// Background
I used botkit to build an RTM listener that allows people to connect with client privileges, spawns a bot for each of those users, which will reply to certain keywords. This enables bot answers based on context, even in private chats. And you never have to invite an actual bot anywhere. You are the bot.
The text was updated successfully, but these errors were encountered: