From 499056e2e34d8ef1fa0bfac921376af0a45dbeea Mon Sep 17 00:00:00 2001 From: Stawberri Date: Sat, 17 Jan 2015 21:16:57 -0800 Subject: [PATCH] Send user ID array with on_connect. This would be useful for people who might want to do some follow list processing without using an extra requests (i.e. to compare with a list of followers) --- lib/twitter_ebooks/bot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twitter_ebooks/bot.rb b/lib/twitter_ebooks/bot.rb index 8e32bda..d8f7098 100644 --- a/lib/twitter_ebooks/bot.rb +++ b/lib/twitter_ebooks/bot.rb @@ -252,7 +252,7 @@ module Ebooks case ev when Array # Initial array sent on first connection log "Online!" - fire(:connect) + fire(:connect, ev) return when Twitter::DirectMessage return if ev.sender.id == @user.id # Don't reply to self