This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Script to display contents of a web page

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Script to display contents of a web page

Post by janipewter »

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! :)
M
Maiki
Voice
Posts: 28
Joined: Sun May 20, 2007 4:58 pm

Post by Maiki »

Code: Select all

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"
}
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

Thanks very much :)
Post Reply