summaryrefslogtreecommitdiff
path: root/rbot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rbot.rb')
-rwxr-xr-xrbot.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbot.rb b/rbot.rb
index 4d13a0d0..60867daf 100755
--- a/rbot.rb
+++ b/rbot.rb
@@ -49,6 +49,10 @@ opts.each {|opt, arg|
botclass = ARGV.shift
botclass = "rbotconf" unless(botclass);
+unless FileTest.directory? botclass
+ # TODO copy in samples/templates from install directory
+end
+
if(bot = Irc::IrcBot.new(botclass))
if($opts["help"])
puts bot.help($opts["help"])