lib/chatterbot/client.rb in chatterbot-0.6.6 vs lib/chatterbot/client.rb in chatterbot-0.7.0
- old
+ new
@@ -43,14 +43,14 @@
# reset the since_id for this bot to the highest since_id we can
# get, by running a really open search and updating config with
# the max_id
#
def reset_since_id
- result = search_client.search("a")
+ config[:tmp_since_id] = 0
+ result = client.search("a")
update_since_id(result)
end
-
-
+
#
# the URL we should use for api calls
#
def base_url