]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - bin/rbot
Wed Aug 03 15:25:07 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
[user/henk/code/ruby/rbot.git] / bin / rbot
index 886f820aa1d97162fd04dd0bd5d7d7675a387095..a5c714922602c915dcf859fe50a292f1c9520493 100755 (executable)
--- a/bin/rbot
+++ b/bin/rbot
 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 $VERBOSE=true
-
-require 'etc'
-require 'getoptlong'
-require 'fileutils'
-require 'rbconfig'
-
-begin
-  require 'rbot/ircbot'
-rescue LoadError => e
-  puts "Error: couldn't find the rbot/ircbot module for loading\n - did you install rbot using install.rb?"
-  exit 2
-end
-  
 $debug = false
-$version="0.9.9"
-$opts = Hash.new
 
 # print +message+ if debugging is enabled
 def debug(message=nil)
@@ -45,6 +30,13 @@ def debug(message=nil)
   #yield
 end
 
+require 'etc'
+require 'getoptlong'
+require 'fileutils'
+
+$version="0.9.9"
+$opts = Hash.new
+
 orig_opts = ARGV.dup
 
 opts = GetoptLong.new(
@@ -67,6 +59,13 @@ if ($opts["trace"])
   }
 end
 
+begin
+  require 'rbot/ircbot'
+rescue LoadError => e
+  puts "Error: couldn't find the rbot/ircbot module for loading\n - did you install rbot using install.rb?"
+  exit 2
+end
+  
 
 if ($opts["version"])
   puts "rbot #{$version}"