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