lib/chatterbot/bot.rb in chatterbot-2.0.3 vs lib/chatterbot/bot.rb in chatterbot-2.0.4

- old
+ new

@@ -52,10 +52,15 @@ raise $! if $! end @handlers = {} end + def screen_name + @screen_name ||= client.settings.screen_name + end + + # # determine the right API to use and run the bot # def run_or_stream @run_count += 1 @@ -111,10 +116,9 @@ def run! before_run HANDLER_CALLS.each { |c| if (h = @handlers[c]) - puts "calling #{c} #{h.opts.inspect}" send(c, *(h.opts)) do |obj| h.call(obj) end end }