lib/chatterbot/dsl.rb in chatterbot-0.6.6 vs lib/chatterbot/dsl.rb in chatterbot-0.7.0
- old
+ new
@@ -143,10 +143,14 @@
else
bot.blacklist += list
end
end
+ def followers(opts={})
+ bot.followers(opts)
+ end
+
#
# specify list of strings we will check when deciding to respond
# to a tweet or not. accepts an array or a comma-delimited string.
# when called, any subsequent calls to search or replies will
# filter out tweets with these strings
@@ -169,9 +173,24 @@
#
def since_id
bot.config[:since_id]
end
+ def consumer_secret(s)
+ bot.config[:consumer_secret] = s
+ end
+
+ def consumer_key(k)
+ bot.config[:consumer_key] = k
+ end
+
+ def secret(s)
+ bot.config[:secret] = s
+ end
+ def token(s)
+ bot.config[:token] = s
+ end
+
#
# explicitly save the configuration/state of the bot.
#
def update_config
bot.update_config