Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created June 1, 2011 22:10
Show Gist options
  • Save benlangfeld/1003470 to your computer and use it in GitHub Desktop.
Save benlangfeld/1003470 to your computer and use it in GitHub Desktop.
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
source 'http://rubygems.org'
gem 'blather'
gem 'foreman'
bot: bundle exec ruby app.rb
@jsgoecke
Copy link

jsgoecke commented Jun 1, 2011

pushing:

heroku create --stack cedar
git push heroku master
heroku ps:scale bot=1
heroku ps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment