-
Notifications
You must be signed in to change notification settings - Fork 7
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
Detecting when someone joins a room? #11
Comments
Hey, It should be possible to tell guest users apart as they have empty email / mention attributes. |
Any chance you think you'd have time to implement that piece? I'm new to hipbot :( |
Sure, will check on this tomorrow morning. |
Any luck on this? |
Yeah, sorry. I felt into refactoring loop. |
How goes? :) Thanks for working on it! |
@borski I've added new reaction to the latest release. class MyBot < Hipbot::Bot
# ...
on_presence do |status|
puts "Triggered by #{sender.name} in #{room.name} with status: #{status}"
end
end I guess it will be also triggered by Hipbot joining and receiving presence statuses once for everyone in the room (on start or invite). I haven't found perfect workaround for this case yet. Let me know if that helps. I'm still working on easy way to distinguish guest users. |
This is pretty great - is there a way to make Hipbot only join a single room? Even if he's invited into a different room by being @mentioned? |
How about removing Hipbot from other rooms? (unless they're public) You can specify room(s) to join on start, but it'll still auto-join on invite/mention. class MyHipbot < Hipbot::Bot
configure do |c|
# ...
c.join = "room name"
end
end |
Where is the auto-join on mention code? Can I change that? On Sun, Dec 15, 2013 at 7:28 AM, Bartosz Kopiński
|
The invite reaction is here. |
Is there functionality for detecting when a new user joins and responding to them automatically? Or being able to tell if they are a real user or 'guest'?
The text was updated successfully, but these errors were encountered: