Fix direct messages
Someone renamed on_message to on_direct_message in bot.rb, but forgot to update it in the template. It used to be on_message in the template, so for less confusion, I think it's preferable to just rename on_direct_message back. :o
This commit is contained in:
parent
f667a7a621
commit
56ddb45b61
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ module Ebooks
|
|||
if ev.is_a? Twitter::DirectMessage
|
||||
return if ev.sender.screen_name.downcase == @username.downcase # Don't reply to self
|
||||
log "DM from @#{ev.sender.screen_name}: #{ev.text}"
|
||||
fire(:direct_message, ev)
|
||||
fire(:message, ev)
|
||||
|
||||
elsif ev.respond_to?(:name) && ev.name == :follow
|
||||
return if ev.source.screen_name.downcase == @username.downcase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue