New on_connect event when stream is connected.

This commit is contained in:
Stawberri 2015-01-15 15:51:13 -08:00
parent 442dcb3370
commit c88aefece8

View file

@ -252,6 +252,7 @@ module Ebooks
case ev
when Array # Initial array sent on first connection
log "Online!"
fire(:connect)
return
when Twitter::DirectMessage
return if ev.sender.id == @user.id # Don't reply to self