summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/post-config.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rbot/post-config.rb b/lib/rbot/post-config.rb
new file mode 100644
index 00000000..974ebd0e
--- /dev/null
+++ b/lib/rbot/post-config.rb
@@ -0,0 +1,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')}'"
+ f.puts " end"
+ f.puts "end"
+}