lib/chatterbot/tweet.rb in chatterbot-0.2.8 vs lib/chatterbot/tweet.rb in chatterbot-0.2.9

- old
+ new

@@ -1,14 +1,16 @@ module Chatterbot # # routines for sending tweets module Tweet - + # simple wrapper for sending a message def tweet(txt, params = {}, original = nil) return if require_login == false + txt = replace_variables(txt, original) + if debug_mode? debug "I'm in debug mode, otherwise I would tweet: #{txt}" else debug txt log txt, original