irc url scraping plugin.

This commit is contained in:
Robert Gerus 2014-03-09 19:00:52 +01:00
parent 4df81613f5
commit c71a306e09

9
plugins/scrape.rb Normal file
View file

@ -0,0 +1,9 @@
include EventMachine::IRC::Commands
Client.register_trigger("PRIVMSG") { |msg|
message = msg[:params][1]
message.split { |word|
puts word if word ~ /4cdn[.]org/
}
}