summaryrefslogtreecommitdiff
path: root/launch_here.rb
blob: 80d6c39cb87bd82bd80130f2c32aa916649e0797 (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)
#

SCM_DIR = File.expand_path(File.dirname('__FILE__'))
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')