User Control Panel
Advertisements

HELP US, HELP YOU!

Fortune service

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Services
View unanswered posts
Author Message
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sun Jan 04, 2004 7:50 am    Post subject: Reply with quote

The Fortune service returns a random fortune.

Simply use LWP::Simple to access the following url and it will return the saying as a string, which you can then send to your bot's user.

http://www.botwork.com/cgi-bin/fortune.cgi?direct=get

Test the service

I've also created a command called fortune, located here. You can just drop this in your commands folder and then your users can type /fortune to get a fortune.
Back to top
Myzterio
Not Yet a God
Not Yet a God


Joined: 13 Dec 2003
Posts: 429

Reputation: 38.1Reputation: 38.1Reputation: 38.1Reputation: 38.1

PostPosted: Sun Jan 11, 2004 1:36 am    Post subject: Reply with quote

Laughing Nice Fortune Service!
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Thu Feb 26, 2004 12:34 am    Post subject: Reply with quote

test.pl
Code:
use LWP::Simple;<br />$url = "http://www.botwork.com/cgi-bin/fortune.cgi?direct=get";<br /><br />while(1){<br />getprint($url);<br />print "\n";<br />}


Wee! Haha! Fun, fun! Thanks, Mojave! Very Happy
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Thu Feb 26, 2004 1:39 am    Post subject: Reply with quote

If you or anyone else abuses my services, I'll block your ip if I can or just take the services down altogether.
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Feb 26, 2004 1:52 am    Post subject: Reply with quote

Or you could make a thing where they have to get a register thing or something... or just deny repeated accessing from the same IP (even though IP's change, they stay the same for at least a little while)
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Services All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group