irc url scraping plugin.

master
Robert Gerus 2014-03-09 19:00:52 +01:00
parent 4df81613f5
commit c71a306e09
1 changed files with 9 additions and 0 deletions

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/
}
}