Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Add a message to encourage user to edit template
Browse files Browse the repository at this point in the history
  • Loading branch information
muffinista committed Mar 9, 2016
1 parent b93814f commit 60c485f
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions templates/skeleton.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ require 'chatterbot/dsl'
#


#
# 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
Expand Down Expand Up @@ -100,19 +117,19 @@ use_streaming
# 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
Expand Down

0 comments on commit 60c485f

Please sign in to comment.