summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-03 20:07:14 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-03 20:07:14 +0000
commitdd0b318cfd3df017b1ec4e44afc2f4e412fd2033 (patch)
treee364fc26af86c1105124385d8da2768262e97d23 /bin
parentfba4b7bba7a5d15f2b98f4d9f1ece390881c5ae9 (diff)
Wed Aug 03 15:25:07 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* 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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot29
1 files changed, 14 insertions, 15 deletions
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}"