Add example for a pirate bay chain.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Jan 2013 21:22:44 +0000 (22:22 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Jan 2013 21:22:44 +0000 (22:22 +0100)
src/main/resources/chains/thepiratebay-example.json [new file with mode: 0644]

diff --git a/src/main/resources/chains/thepiratebay-example.json b/src/main/resources/chains/thepiratebay-example.json
new file mode 100644 (file)
index 0000000..f2eed53
--- /dev/null
@@ -0,0 +1,50 @@
+{
+       "enabled": false,
+       "name": "Example Reaction",
+
+       "query":
+               {
+                       "class": "HttpQuery",
+                       "parameters": [
+                               {
+                                       "name": "url",
+                                       "value": "http://thepiratebay.se/search/Example%20Words/0/3/0"
+                               }
+                       ]
+               },
+
+       "filters": [
+               {
+                       "class": "HtmlFilter"
+               },
+               {
+                       "class": "PirateBayFilter"
+               }
+       ],
+
+       "trigger":
+               {
+                       "class": "NewTorrentTrigger"
+               },
+
+       "action":
+               {
+                       "class": "EmailAction",
+                       "parameters": [
+                               {
+                                       "name": "smtpHostname",
+                                       "value": "smtp"
+                               },
+                               {
+                                       "name": "sender",
+                                       "value": "reactor@reactor.de"
+                               },
+                               {
+                                       "name": "recipient",
+                                       "value": "recipient@recipient.de"
+                               }
+                       ]
+               },
+
+       "updateInterval": 3600
+}