summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 16:32:32 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 16:32:32 +0000
commit2a96c9198c1f6e13407d0999083f6ce5e0bc06fa (patch)
treeb3b9247d275d9b554665bc22884104d266d2e757 /bin
parent21949774b91eaec6ecde4eaa8ad121e2c0a36b87 (diff)
move rbot into lib - still rearranging for packaging/installation
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/rbot b/bin/rbot
index 6f08fe57..9b0de677 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -23,6 +23,7 @@
$VERBOSE=true
+require 'etc'
require 'getoptlong'
require 'rbot/ircbot'
@@ -47,10 +48,14 @@ opts.each {|opt, arg|
}
botclass = ARGV.shift
-botclass = "rbotconf" unless(botclass);
+user = Etc.getlogin
+botclass = "/home/#{user}/.rbot" unless(botclass);
unless FileTest.directory? botclass
# TODO copy in samples/templates from install directory
+ puts "no #{botclass} directory found, creating from templates.."
+ # copy DATA/rbot/templates to botclass
+
end
if(bot = Irc::IrcBot.new(botclass))