From 39b8ac0ed06c32aa72142acda04a27b8404f5560 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 27 Jul 2005 17:50:49 +0000 Subject: post config script to persist configuration from the script --- lib/rbot/post-config.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/rbot/post-config.rb (limited to 'lib/rbot') 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" +} -- cgit v1.2.3