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
Hello, would love to help out, but I'm afraid I need more details on your problem. Can you post a more detailed chunk of code that illustrates the problem you are having?
the adapter seem to be hooked up correctly to channel_join and group_join events. @leonfortej@Kenshinhu are you sure you are using the API correctly? specifically, the messages should trigger when any user joins or leaves a channel that the bot is in. if that's what you expected and it didn't work, let me know so i can try to reproduce it.
I'm testing Hubot with Slack now and I can get the channel enter to trigger but not the channel leave.
Upon entering the channel a user is greeted with one of my custom greetings.
When a user leaves the channel.....nothing.
@JoniSykes thanks for the feedback! you inspired me to try reproducing the problem and even before getting there, i think i found it.
the current implementation relies on RTM "message" events, with subtype "channel_join"/"group_join" and "channel_leave"/"group_leave". Back in May, there was an announcement that Slack no longer guaranteed delivery of these events, in favor of new events with types "member_joined_channel" and "member_left_channel".
we need to update the implementation of the adapter to listen for and handle those events to generate the EnterMessage and LeaveMessage objects.
👍
Weird stuff is, I already have a bot working in a slack space with a greeting message for new users, but I created another space today with this same script and is not working:
@alagos thanks for the data point. the best i can do to explain that is to say that the older event types are no longer guaranteed, so its possible that the differences in your workspaces are responsible for the different behavior.
Activity
UncannyBingo commentedon Jun 25, 2016
Hello, would love to help out, but I'm afraid I need more details on your problem. Can you post a more detailed chunk of code that illustrates the problem you are having?
leonfortej commentedon Aug 19, 2016
Having the same problem, pulled code directly from samples. Never kicks off.
module.exports = (robot) ->
enterReplies = ['Hi', 'Target Acquired', 'Firing', 'Hello friend.', 'Gotcha', 'I see you']
leaveReplies = ['Are you still there?', 'Target lost', 'Searching']
module.exports = (robot) ->
robot.enter (res) ->
res.send res.random enterReplies
robot.leave (res) ->
res.send res.random leaveReplies
aoberoi commentedon Oct 17, 2017
the adapter seem to be hooked up correctly to
channel_join
andgroup_join
events. @leonfortej @Kenshinhu are you sure you are using the API correctly? specifically, the messages should trigger when any user joins or leaves a channel that the bot is in. if that's what you expected and it didn't work, let me know so i can try to reproduce it.JoniSykes commentedon Oct 18, 2017
I'm testing Hubot with Slack now and I can get the channel
enter
to trigger but not the channelleave
.Upon entering the channel a user is greeted with one of my custom greetings.
When a user leaves the channel.....nothing.
aoberoi commentedon Oct 19, 2017
@JoniSykes thanks for the feedback! you inspired me to try reproducing the problem and even before getting there, i think i found it.
the current implementation relies on RTM
"message"
events, with subtype"channel_join"
/"group_join"
and"channel_leave"
/"group_leave"
. Back in May, there was an announcement that Slack no longer guaranteed delivery of these events, in favor of new events with types"member_joined_channel"
and"member_left_channel"
.we need to update the implementation of the adapter to listen for and handle those events to generate the
EnterMessage
andLeaveMessage
objects.alagos commentedon Nov 27, 2017
👍
Weird stuff is, I already have a bot working in a slack space with a greeting message for new users, but I created another space today with this same script and is not working:
I tried with the same hubot/hubot-slack versions, but nothing happens.
aoberoi commentedon Dec 18, 2017
@alagos thanks for the data point. the best i can do to explain that is to say that the older event types are no longer guaranteed, so its possible that the differences in your workspaces are responsible for the different behavior.
4 remaining items