User Control Panel
Advertisements

HELP US, HELP YOU!

Sports

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Fri Dec 31, 2004 7:17 pm    Post subject: Reply with quote

in elsif

Code:
#Made By Purcelly <br />#For Innington<br /><br />if($msg =~ /^!sports/)<br />{<br />&send($self,"Here is one way to get out out of doing certain sports:");<br />open (FILE, "./sports.txt");<br />@bat = <FILE>;<br />close (FILE);<br /> $result = $quotes[int(rand(scalar(@quotes)))];<br /> $self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}<br />}
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Fri Dec 31, 2004 7:46 pm    Post subject: Reply with quote

Once again you didn't test your code...
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sat Jan 01, 2005 11:29 pm    Post subject: Reply with quote

heres the working code

Code:
#Made By Purcelly-tech<br /><br />if ($msg eq "sports) {<br />open (FILE, "./sports.txt");<br />@bat = <FILE>;<br />close (FILE);<br />my $result = $bat[ int rand scalar @bat];<br />$self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands 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