Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RAILS_ENV = 'production'
- # exit if another bot is already active
- $: << RAILS_ROOT << RAILS_ROOT+'/vendor/plugins/acts_as_sphinx/lib' << RAILS_ROOT+'/lib/ircbot'
- require 'rubygems'
- require 'active_record'
- require 'vendor/plugins/acts_as_sphinx/lib/acts_as_sphinx.rb'
- require 'config/environment.rb'
- require 'bot'
- require 'xmlrpc/client'
- connection = YAML::load(open(RAILS_ROOT+'/config/database.yml'))[RAILS_ENV]
- ActiveRecord::Base.establish_connection(connection)
- Dir[RAILS_ROOT+"/app/models/irc*"].each {|m| require m}
- Dir[RAILS_ROOT+"/app/models/rss_feed*"].each {|m| require m}
Add Comment
Please, Sign In to add comment