|
| Author |
Message |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sun Jan 04, 2004 7:50 am Post subject: |
|
|
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

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Sun Jan 11, 2004 1:36 am Post subject: |
|
|
Nice Fortune Service! |
|
| Back to top |
|
 |
Rameses Senior Member

Joined: 02 Feb 2004 Posts: 182
   
|
Posted: Thu Feb 26, 2004 12:34 am Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Thu Feb 26, 2004 1:39 am Post subject: |
|
|
| 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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Thu Feb 26, 2004 1:52 am Post subject: |
|
|
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 |
|
 |
|