Created
June 1, 2011 22:10
-
-
Save benlangfeld/1003470 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'blather/client' | |
setup '[email protected]', '......' | |
# Auto approve subscription requests | |
subscription :request? do |s| | |
write_to_stream s.approve! | |
end | |
# Echo back what was said | |
message :chat?, :body do |m| | |
write_to_stream m.reply | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'blather' | |
gem 'foreman' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bot: bundle exec ruby app.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pushing:
heroku create --stack cedar
git push heroku master
heroku ps:scale bot=1
heroku ps