User Control Panel
Advertisements

HELP US, HELP YOU!

chicken

 
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 1:12 am    Post subject: Reply with quote

heres is the leviathan code!

Code:
#<Leviathan><br />#command Name // !chicken<br />#Description // answers to the why did the chicken cross the road joke<br />#Usage // !chicken<br />#Permissions // Public.<br />#Listener // All<br />#Copyright // Purcelly<br /><br />sub chicken {<br />   my ($self,$client,$msg) = @_;<br /><br />   my @chicken = (<br />'Homer Simpson\ 's Answer : There was free beer on the other side of the road.'<br />'Bill Cosby \'s Answer : Weeelll, ya see, the chicken crossed the road, and to get... to...the jello pudding pops'<br />'David Hume\'s Answer : Out of custom and habit.'<br />'Jessica Simpson \'s Answer : Why would he be one a road, I thought chickens lived in the ocean? '<br />'Linda Tripp \'s Answer : "I've been friends with this chicken for a long time. I only recorded the chicken's crossing of the road because it was important for the country to know what was going on Pennsylvania Ave."'<br />'Snoop Dogg \'s Answer : This (censored) fool of a chicken didn't (censored) know what the (censored) he was doin crossin a (censored) alley in (censored) Harlem at 1:00 in the (censored) mornin'.'<br />'Isaac Newton \'s Answer : The duck suggested to the chicken that they play follow the leader then the duck crossed the road causing the chicken to cross after it, but at the same time holding up traffic, thus proving that for every action there is an equal and opposite reaction .'<br />'Shakespeare \'s Answer : To cross or not to cross, that is the question.'<br />'Rene Descartes \'s Answer : Since the chicken does not really exist it was only an illusion that the chicken crossed the road. This illusion was only in my mind. Therefore I created the chicken that crossed the road.'<br />'Pete Rose \'s Answer : I don't know, but I swear I didn't bet on it.'<br />'Gandhi 's Answer : All chickens should peacefully resist by crossing the road.'<br />'Steve Jobs \'s (Apple) Answer : Because of the brand-new iChicken- a portable device that crosses roads, lays eggs, gives wakeup calls and provides dinner, automatically. This amazing device can simply plug in to the $4000 iCoop to produce additional iChickens and recharge existing iChickens, or plug it into the $9000 iChop to convert iChicken files into iFood. iFood-to-Regular Food converters sell for an additional $50/month fee, however the optional iFood-to-FoodXP converter is still in development. iChickens are only available from authorized iDealers, which can be found in nearly every US state. If your iChicken develops a disease or stops working, you must send it by FedEx Overnight to Littleton, Montana and our iTechnicians will send you a replacement within 3 months. The iChicken. Wow.'<br />'Colin Powell \'s Answer : This is not about whether inspectors made sure the chicken crossed the road, it's about the willingness of the chicken to cross the road voluntarily.'<br />'Darwin'\s Answer : It was the logical next step after coming down from the trees.'<br />'(former) Iraq Information Minister : There is no such chicken trying to cross the road, and there never has been any such chicken.'<br />'Moses\'s Answer : And God came down from the Heavens, and He said unto the chicken, "Thou shalt cross the road." And the chicken crossed the road, and there was much rejoicing.'<br />'David Hume\'s Answer : Out of custom and habit.'<br />'Douglas Adams\'s Answer : Forty-two. '<br />'Epicurus\'s Answer : For fun. '<br />'Henry David Thoreau\'s Answer : To live deliberately ... and suck all the marrow out of life. '<br />'Hippocrates\'s Answer : Because of an excess of light pink gooey stuff in its pancreas. '<br />'Howard Cosell\'s Answer : It may very well have been one of the most astonishing events to grace the annals of history. An historic, unprecedented avian biped with the temerity to attempt such an herculean achievement formerly relegated to homosapien pedestrians is truly a remarkable occurrence. '<br />'Jack Nicholson's Answer : 'Cause it (censored) wanted to. That's the (censored) reason. '<br />'John Sununu \'s Answer : The Air Force was only too happy to provide the transportation, so quite understandably the chicken availed himself of the opportunity. '<br />'Johann Friedrich von Goethe\'s Answer : The eternal hen-principle made it do it. '<br />'Johnny Cochran \'s Answer : Because the road was black and the chicken was white. We must acquit. '<br />'Machiavelli\'s Answer : The point is that the chicken crossed the road. Who cares why? The end of crossing the road justifies whatever motive there was.'<br />'Mark Twain\'s Answer : The news of its crossing has been greatly exaggerated. '<br />'Ralph Waldo Emerson\'s Answer : It didn't cross the road; it transcended it. '<br />'Salvador Dali \'s Answer : The Fish. '<br />'Secretary Cheney\'s Answer : Chickens are big-time because they have wings. They could fly if they wanted to. Chickens don't want to cross the road. They don't need help crossing the road. In fact, I'm not interested in crossing the road myself. '<br />'Senator Lieberman\'s Answer : I believe that every chicken has the right to worship his or her God in his or her own way. Crossing the road is a spiritual journey and no chicken should be denied the right to cross the road in his or her own way. '<br />'The Sphinx\'s Answer : You tell me. '<br />'Neil Armstrong\'s Answer : To go where no chicken has gone before.'<br />'Thomas de Torquemada\'s Answer : Give me ten minutes with the chicken and I'll find out. '<br />'Timothy Leary\'s Answer : Because that's the only kind of trip the Establishment would let it take. '<br />'George Bush\'s Answer : We don't really care why the chicken crossed the road. We just want to know if the chicken is on our side of the road or not. The chicken is either with us or it is against us. There is no middle ground here. '<br />'Al Gore\'s Answer : I invented the chicken. I invented the road. Therefore, the chicken crossing the road represented the application of these two different functions of government in a new, reinvented way designed to bring greater services to the American people.'<br />'Bill Gates\' Answer : I have just released eChicken 2003, which will not only cross roads, but will lay eggs, file your important documents, and balance your checkbook - and Internet Explorer is an inextricable part of eChicken. '<br />'Martha Stewart\'s Answer : No one called to warn me which way that chicken was going. I had a standing order at the farmer's market to sell my eggs when the price dropped to a certain level. No little bird gave me any insider information. '<br />'Dr. Seuss\' Answer : Did the chicken cross the road? Did he cross it with a toad? Yes, the chicken crossed the road, But why it crossed, I've not been told! '<br />'Ernest Hemingway\'s Answer : To die. In the rain. Alone. '<br />'Martin Luther King Jr\'s Answer : I envision a world where all chickens will be free to cross roads without having their motives called into question. '<br />'Grandpa\'s Answer : In my day, we didn't ask why the chicken crossed the road. Someone told us that the chicken crossed the road, and that was good enough for us. '<br />'Barbara Walters\' Answer : Isn't that interesting? In a few moments we will be listening to the chicken tell, for the first time, the heart-warming story of how it experienced a serious case of molting and went on to accomplish its life-long dream of crossing the road. '<br />'Pat Buchanan\'s Answer : To steal a job from a decent, hard-working American. '<br />'John Lennon\'s Answer : Imagine all the chickens crossing roads in peace. '<br />'Aristotle\'s Answer : It is the nature of chickens to cross the road.'<br />'Saddam Hussein\'s Answer : This was an unprovoked act of rebellion and we were quite justified in dropping 50 tons of nerve gas on it. '<br />'Voltaire\'s Answer : I may not agree with what the chicken did, but I will defend to the death its right to do it. '<br />'Captain Kirk\'s Answer : To boldly go where no chicken has gone before. ',<br />   );<br /><br />   # Pick a random item.<br />   my $item = $chicken [ int(rand(scalar(@chicken))) ];<br /><br />   my $ext = int(rand(4));<br />   $ext++;<br />   if ($ext == 1) {<br />  $item .= " why did the chicken cross the road";<br />   }<br /><br />   return $item;<br />}<br />{<br />   Category    => 'Fun Stuff',<br />   Description => 'answerd to the old chicken joke.',<br />   Usage       => '!chicken',<br />   Listener    => 'All',<br />};


and here it is in elsif!

Code:
#Made By Purcelly-tech<br /><br />if ($msg eq "chicken) {<br />open (FILE, "./chicken.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");}


and the chicken.txt is attched and should be put in the commands folder

chicken.txt only needed for elsif
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Fri Dec 31, 2004 4:15 am    Post subject: Reply with quote

Nice job man. Just a note. Remember to block all the ' with a backslash.

Code:
if($message =~/^!chicken/){<br />my @chicken = (<br />'Homer Simpson\'s Answer : There was free beer on the other side of the road.',<br />'Bill Cosby\'s Answer : Weeelll, ya see, the chicken crossed the road, and to get... to...the jello pudding pops',<br /># ect..<br />);<br /><br /># Pick a random item.<br />my $item = $chicken [ int(rand(scalar(@chicken))) ];<br /><br />my $ext = int(rand(4));<br />$ext++;<br />if ($ext == 1) {<br /> $item .= "Why did the chicken cross the road";<br />}<br /><br />$self->sendMessage($item);<br />}
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Dec 31, 2004 4:24 am    Post subject: Reply with quote

Great command, but didn't work for me Sad is there something got errors relating to the array. Something about missing operators......
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Fri Dec 31, 2004 4:25 am    Post subject: Reply with quote

Yes, he forgot to block out all the 's in his code. Sad

Edit: In my above post I have shown how to fix this. Smile
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Dec 31, 2004 4:29 am    Post subject: Reply with quote

do i also need to end the lines in comma's?
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Fri Dec 31, 2004 4:48 am    Post subject: Reply with quote

Yes.
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Fri Dec 31, 2004 11:54 am    Post subject: Reply with quote

Hey, You can also put the sentences in the elsif version, Im guessing you didnt do it becuase it would look messy?
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: Fri Dec 31, 2004 1:10 pm    Post subject: Reply with quote

Dazzy - yes i did

juggernaut has many commands liek that os i did it for it but most commands in elsif i have seen have had seperate text files



Tcs - i have sorted out the ' i think

also if you like these i know there basic but i thought i would bring you some new ones i have never seen before

ones i am currently making include


office terms
excuse list
funny reaL NAMES
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 6:33 pm    Post subject: Reply with quote

It looks like a modification of Leviathan's "Valley of the Green Glass Doors" command.

I recognized that because of the 1/4 chance that it will add the extension to it.

In Juggernaut, it would always add "Only in the Valley of the Green Glass Doors." to the end of every message it sent, so for Leviathan I coded it to only send that on average of 1/4 of the messages it sent.

Anyway, nice job though! Smile

_________________
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: Fri Dec 31, 2004 6:48 pm    Post subject: Reply with quote

thanx cer

i used valley of green glass doors to look at while coding it!
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