From dd0b318cfd3df017b1ec4e44afc2f4e412fd2033 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 3 Aug 2005 20:07:14 +0000 Subject: Wed Aug 03 15:25:07 BST 2005 Tom Gilbert * Added french language file (TODO most of the plugins just talk english) * The way the Enum configs were set up, it wasn't possible to add language files to rbot at runtime (the directory was only scanned at startup). Now you can set a values Proc, which is called to return a list of allowed values whenever it's queried. * Added Config module for determining where we were installed. Unfortunately rubygems is a total whore in this regard, and I hope the current hackery I have to do to support it becomes redundant in the future. --- bin/rbot | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'bin/rbot') diff --git a/bin/rbot b/bin/rbot index 886f820a..a5c71492 100755 --- a/bin/rbot +++ b/bin/rbot @@ -22,22 +22,7 @@ # 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}" -- cgit v1.2.3