I want to get the data from a file on a webserver, and the data must been shown in the channel with a trigger
Example:
Tigger: !post
Shows the data of: http://test.server.nl/test.php
(The data contains more then one line)
Can you help me with that? ty!
(I tried this:
Code: Select all
package require http
bind pub - !post pub:post
post pub:post { nick uhost handle channel arg } {
set query ["http://test.server.nl/test.php"]
set token [http::geturl $query]
upvar #0 $token state
putserv "PRIVMSG $channel :$token"
}
putlog "*** WebGet Script loaded ***"