diff options
-rw-r--r-- | data/rbot/plugins/urban.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb index dd275e2d..d4af64a6 100644 --- a/data/rbot/plugins/urban.rb +++ b/data/rbot/plugins/urban.rb @@ -1,5 +1,12 @@ require 'cgi' -require 'rubyful_soup' +begin + require 'rubyful_soup' +rescue + warning "could not load rubyful_soup, urban dictionary disabled" + warning "please get it from http://www.crummy.com/software/RubyfulSoup/" + warning "or install it via gem" + return +end require 'uri/common' class UrbanPlugin < Plugin |