lib/chatterbot/client.rb
# reset to the last DM received
reset to the last DM received
reset to the last DM received
def reset_since_id_dm
      config[:since_id_dm] = 0
      result = client.direct_messages_received.max_by(&:id)
      update_since_id_dm(result)
    end
def reset_since_id_dm config [ :since_id_dm ] = 0 result = client . direct_messages_received . max_by ( & :id ) update_since_id_dm ( result ) end
reset to the last DM received
reset to the last DM received