irc url scraping plugin.
This commit is contained in:
parent
4df81613f5
commit
c71a306e09
1 changed files with 9 additions and 0 deletions
9
plugins/scrape.rb
Normal file
9
plugins/scrape.rb
Normal 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/
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue