Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ module.exports = (robot) => {

if (channelId === message.channel) {
// Skip posting a message when the bot is in the same channel
} else if (robot.getBrain().getChannelById(channelId).is_general) {
// Skip posting to the special #general channel since everyone is in it
} else if (robot.slackAdapter.isMemberOfChannel(channelId)) {
// This bot is already in the channel so post there
robot.log(`Posting to ${channelName}`)
Expand Down