X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fgrouphug.rb;h=aa3bf6d784e96fdf4cebf300c07ca3f6c35ca20d;hb=87e3751b3cbfc0de98a0b0b2dd44943e696b9eb9;hp=73c21eee54aba6fd88de5e32aad3cb08e06e72e5;hpb=5e8ddb21367309624a05ce45c7facee6620b5edf;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/grouphug.rb b/data/rbot/plugins/grouphug.rb index 73c21eee..aa3bf6d7 100644 --- a/data/rbot/plugins/grouphug.rb +++ b/data/rbot/plugins/grouphug.rb @@ -11,17 +11,20 @@ class GrouphugPlugin < Plugin end def privmsg( m ) - h = Net::HTTP.new( "grouphug.us", 80 ) path = "/random" path = "/confessions/#{m.params()}" if m.params() - data = bot.httputil.get(URI.parse("http://grouphug.us/#{path}")) - - reg = Regexp.new( '(