]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/tube.rb
hangman: fix score fetching to work for offline users.
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / tube.rb
index 165622743b0ed1512a7d2c9f6ab96b22ec4b5cb5..bbae5c59684bbb82b0cf78a425082d956a00238d 100644 (file)
@@ -1,15 +1,11 @@
 #Tube Status Enquiry plugin for rbot
 #Plugin by Colm Linehan
 
-require 'rexml/document'
-require 'uri/common'
-
 class TubePlugin < Plugin
-  include REXML
   def help(plugin, topic="")
   "tube [district|circle|metropolitan|central|jubilee|bakerloo|waterlooandcity|hammersmithandcity|victoria|eastlondon|northern|piccadilly] => display tube service status for the specified line(Docklands Light Railway is not currently supported)" # , tube stations => list tube stations (not lines) with problems"
   end
-  
+
   def tube(m, params)
     line = params[:line]
     tube_page = @bot.httputil.get('http://www.tfl.gov.uk/tfl/livetravelnews/realtime/tube/default.html')
@@ -49,7 +45,7 @@ class TubePlugin < Plugin
         stations_array.push $1
       end
     }
-    if stations_array.empty? 
+    if stations_array.empty?
       m.reply "There are no station-specific announcements"
       return
     else