X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fthreat.rb;h=dacd10584dd839ff545b8820dc01e6dc4627aa34;hb=a51ae05ee0252576a10a77c9f92c0ce096be73aa;hp=ae7091010de2ef4852dc2dc423beef6842f9756f;hpb=8db3c907730752ccc668c69080680d1b90140c10;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/threat.rb b/data/rbot/plugins/threat.rb index ae709101..dacd1058 100644 --- a/data/rbot/plugins/threat.rb +++ b/data/rbot/plugins/threat.rb @@ -16,36 +16,39 @@ class ThreatPlugin < Plugin end def privmsg(m) - color = "" + color = "" red = "\x0304" # severe - orange = "\x0307" # high - yellow = "\x0308" # elevated - blue = "\x0312" # guarded - green = "\x0303" # low - black = "\x0301" # default - - page = @bot.httputil.get URI.parse("http://www.dhs.gov/dhspublic/") - if page =~ /