diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 16:32:32 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 16:32:32 +0000 |
commit | 2a96c9198c1f6e13407d0999083f6ce5e0bc06fa (patch) | |
tree | b3b9247d275d9b554665bc22884104d266d2e757 /bin/rbot | |
parent | 21949774b91eaec6ecde4eaa8ad121e2c0a36b87 (diff) |
move rbot into lib - still rearranging for packaging/installation
Diffstat (limited to 'bin/rbot')
-rwxr-xr-x | bin/rbot | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)) |