diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-03 20:07:14 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-03 20:07:14 +0000 |
commit | dd0b318cfd3df017b1ec4e44afc2f4e412fd2033 (patch) | |
tree | e364fc26af86c1105124385d8da2768262e97d23 /bin | |
parent | fba4b7bba7a5d15f2b98f4d9f1ece390881c5ae9 (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-x | bin/rbot | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -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}" |