summaryrefslogtreecommitdiff
path: root/lib/rbot/post-config.rb
blob: 182cdfce7cc4c001dd42e249c938b6bece582748 (plain)
1
2
3
4
5
6
7
8
# write out our datadir so we can reference it at runtime
File.open('rbotconfig.rb', "w") {|f|
  f.puts "module Irc"
  f.puts "  module Config"
  f.puts "    DATADIR = '#{config('datadir')}/rbot'"
  f.puts "  end"
  f.puts "end"
}