| View previous topic :: View next topic |
| Author |
Message |
janipewter Voice
Joined: 22 Jan 2006 Posts: 16
|
Posted: Fri Aug 24, 2007 9:09 am Post subject: Script to display contents of a web page |
|
|
Hi all, wondering if anyone can help, I'm just looking for a simple script which will display the contents of a web page (just a php page with 1 line of text) when a trigger command is used (such as !page) or something.
If someone could write this for me it would be great, and also possibly include some flood protection so any user could only use it once every 5 minutes or something? Although flood protection is not that important.
Hope I have no asked too much, thanks!  |
|
| Back to top |
|
 |
Maiki Voice
Joined: 20 May 2007 Posts: 28
|
Posted: Fri Aug 24, 2007 9:20 am Post subject: |
|
|
| Code: | package require http
bind pub - !page page
proc page {nick uhost hand chan arg} {
set tok [http::geturl WEBLINKHERE.com]
set data [http::data $tok]
http::cleanup $tok
putserv "PRIVMSG $chan :$data"
} |
|
|
| Back to top |
|
 |
janipewter Voice
Joined: 22 Jan 2006 Posts: 16
|
Posted: Fri Aug 24, 2007 9:24 am Post subject: |
|
|
Thanks very much  |
|
| Back to top |
|
 |
|