blob: 033e075fd14729518811b2bbaf2d5c4d6fa0ad94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/ruby
#
# Load rbot from this directory. (No need to install it with setup.rb)
#
SVN_DIR = File.expand_path(File.dirname('__FILE__'))
puts "Running from #{SVN_DIR}"
$:.unshift File.join(SVN_DIR, 'lib')
module Irc
class Bot
module Config
@@datadir = File.join SVN_DIR, 'data/rbot'
@@coredir = File.join SVN_DIR, 'lib/rbot/core'
end
end
end
load File.join(SVN_DIR, 'bin/rbot')
|