timriley / campfire-bot

An extensible bot for the Campfire web-based chat system #crc

This URL has Read+Write access

campfire-bot / script / bot
100755 10 lines (7 sloc) 0.261 kb
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby
 
# Run this script with the environment as the only argument. eg. ./script/bot development
BOT_ENVIRONMENT = ARGV.first
BOT_ROOT = File.join(File.dirname(__FILE__), '..')
 
require File.join(BOT_ROOT, 'lib', 'bot')
 
bot.connect
bot.run