templates/skeleton.txt in chatterbot-2.0.0.pre vs templates/skeleton.txt in chatterbot-2.0.2

- old
+ new

@@ -20,10 +20,27 @@ # about, and comment or uncomment as you see fit. # # +# These lines here are just to make sure you edit this file before +# trying to run your bot. You can safely remove them once you've +# looked through this file. +# +puts "========================" +puts "========================" +puts "========================" +puts "\n\n\n" + +puts "Hey there! You should open %{name}.rb and take a look before running this script." + +puts "\n\n\n" +exit + + + +# # Placing your security credentials right in a script like this is # handy, but potentially dangerous, especially if your code is # publicly available on github or somewhere else. However, if it is # convenient for you to have your authentication data here, you can # uncomment the lines below, and copy your configuration data from @@ -76,17 +93,17 @@ # are following your bot. A tweet from an account that isn't following # will be rejected only_interact_with_followers # -# Specifying 'streaming true' will cause Chatterbot to use Twitter's +# Specifying 'use_streaming' will cause Chatterbot to use Twitter's # Streaming API. Your bot will run constantly, listening for tweets. # Alternatively, you can run your bot as a cron/scheduled job. In that # case, do not use this line. Every time you run your bot, it will # execute once, and then exit. # -streaming true +use_streaming # # Here's the fun stuff! # @@ -98,22 +115,22 @@ # - likely to get your bot suspended # # Still here? Hopefully it's because you're going to do something cool # with the data that doesn't bother other people. Hooray! # -search "chatterbot" do |tweet| - # here's the content of a tweet - puts tweets.text -end +#search "chatterbot" do |tweet| +# # here's the content of a tweet +# puts tweets.text +#end # # this block responds to mentions of your bot # -replies do |tweet| - # Any time you put the #USER# token in a tweet, Chatterbot will - # replace it with the handle of the user you are interacting with - reply "Yes #USER#, you are very kind to say that!", tweet -end +#replies do |tweet| +# # Any time you put the #USER# token in a tweet, Chatterbot will +# # replace it with the handle of the user you are interacting with +# reply "Yes #USER#, you are very kind to say that!", tweet +#end # # this block handles incoming Direct Messages. if you want to do # something with DMs, go for it! #