lib/chatterbot/reply.rb in chatterbot-0.7.0 vs lib/chatterbot/reply.rb in chatterbot-0.7.1

- old
+ new

@@ -6,18 +6,18 @@ # handle replies for the bot def replies(&block) return unless require_login - debug "check for replies since #{since_id}" + debug "check for replies since #{since_id_reply}" - opts = since_id > 0 ? {:since_id => since_id} : {} + opts = since_id_reply > 0 ? {:since_id => since_id_reply} : {} opts[:count] = 200 results = client.mentions(opts) results.each { |s| + update_since_id_reply(s) unless ! block_given? || on_blacklist?(s) || skip_me?(s) - update_since_id(s) yield s end } end end