mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
New on_connect event when stream is connected.
This commit is contained in:
@@ -252,6 +252,7 @@ module Ebooks
|
|||||||
case ev
|
case ev
|
||||||
when Array # Initial array sent on first connection
|
when Array # Initial array sent on first connection
|
||||||
log "Online!"
|
log "Online!"
|
||||||
|
fire(:connect)
|
||||||
return
|
return
|
||||||
when Twitter::DirectMessage
|
when Twitter::DirectMessage
|
||||||
return if ev.sender.id == @user.id # Don't reply to self
|
return if ev.sender.id == @user.id # Don't reply to self
|
||||||
|
|||||||
Reference in New Issue
Block a user