mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-22 21:31:06 -05:00
Use can_pester? logic for timeline tweets
This commit is contained in:
@@ -258,6 +258,11 @@ module Ebooks
|
||||
return
|
||||
end
|
||||
|
||||
if !meta[:mentions_bot] && !userinfo(ev.user.screen_name).can_pester?
|
||||
log "Already pestered @#{ev.user.screen_name} enough for now"
|
||||
return
|
||||
end
|
||||
|
||||
log "Replying to @#{ev.user.screen_name} with: #{meta[:reply_prefix] + text}"
|
||||
@twitter.update(meta[:reply_prefix] + text, in_reply_to_status_id: ev.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user