User Control Panel
Advertisements

HELP US, HELP YOU!

Random Greek Alphabet Name

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Wed Apr 07, 2004 6:44 pm    Post subject: Reply with quote

I just got this idea because I saw that names of fraternities and stuff use greek alphabet names like "Pi kappa alpha" and stuff.

So anyhow, I made this command that returns 3 random Greek letters.

Code:
# COMMAND NAME:<br />#   GREEK<br /># DESCRIPTION:<br />#   Get a random Greek alphabet name!<br /># COMPATIBILITY:<br />#   FULLY COMPATIBLE<br /><br />sub greek {<br />   my ($self,$client,$msg,$listener) = @_;<br /><br />   # The Greek alphabet.<br />   my @alpha = (<br />  "alpha",<br />  "beta",<br />  "gamma",<br />  "delta",<br />  "epsilon",<br />  "zeta",<br />  "eta",<br />  "theta",<br />  "iota",<br />  "kappa",<br />  "lambda",<br />  "mu",<br />  "nu",<br />  "xi",<br />  "omicron",<br />  "pi",<br />  "rho",<br />  "sigma",<br />  "tau",<br />  "upsilon",<br />  "phi",<br />  "chi",<br />  "psi",<br />  "omega",<br />   );<br /><br />   # Get three words.<br />   my $one = $alpha [ int(rand(scalar(@alpha))) ];<br />   my $two = $alpha [ int(rand(scalar(@alpha))) ];<br />   my $three = $alpha [ int(rand(scalar(@alpha))) ];<br /><br />   # Return the result.<br />   return "$one $two $three";<br />}<br />1;

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Wed Apr 07, 2004 6:55 pm    Post subject: Reply with quote

hope you dont mind but here it is in maya

Code:
if ($msg eq "greek") {<br /><br />my @alpha = (<br /> "alpha",<br /> "beta",<br /> "gamma",<br /> "delta",<br /> "epsilon",<br /> "zeta",<br /> "eta",<br /> "theta",<br /> "iota",<br /> "kappa",<br /> "lambda",<br /> "mu",<br /> "nu",<br /> "xi",<br /> "omicron",<br /> "pi",<br /> "rho",<br /> "sigma",<br /> "tau",<br /> "upsilon",<br /> "phi",<br /> "chi",<br /> "psi",<br /> "omega",);<br /><br />my $a = $alpha [ int(rand(scalar(@alpha))) ];<br />my $b = $alpha [ int(rand(scalar(@alpha))) ];<br />my $c = $alpha [ int(rand(scalar(@alpha))) ];<br /><br />&send($self,"$a $b $c");<br /><br />}
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Wed Apr 07, 2004 7:00 pm    Post subject: Reply with quote

Razz and andromeda Razz :

Code:
sub greek<br />{ <br />   my ($bot, $self, $user, $msg) = @_;<br /><br /><br /><br /># The Greek alphabet.<br />my @alpha = (<br /> "alpha",<br /> "beta",<br /> "gamme",<br /> "delta",<br /> "epsilon",<br /> "zeta",<br /> "eta",<br /> "theta",<br /> "iota",<br /> "kappa",<br /> "lambda",<br /> "mu",<br /> "nu",<br /> "xi",<br /> "omicron",<br /> "pi",<br /> "rho",<br /> "sigma",<br /> "tau",<br /> "upsilon",<br /> "phi",<br /> "chi",<br /> "psi",<br /> "omega",<br />);<br /><br /># Get three words.<br />my $one = $alpha [ int(rand(scalar(@alpha))) ];<br />my $two = $alpha [ int(rand(scalar(@alpha))) ];<br />my $three = $alpha [ int(rand(scalar(@alpha))) ];<br /><br /># Return the result.<br />return "$one $two $three";<br />}<br />1<br />{<br />   Category    => ':PFunny stuff',         <br />   Usage       => ['yomama              <-- tells you a yo mama joke',],<br />   Description => 'A random greek alphabet name', <br />};
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Wed Apr 07, 2004 7:01 pm    Post subject: Reply with quote

Instead use if($msg =~ /^geek/) { At the top
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Wed Apr 07, 2004 7:11 pm    Post subject: Reply with quote

geek ?? why would i use geek Razz

meh i like it so it has to be exact
Back to top
virus101
Young One
Young One


Joined: 17 Mar 2004
Posts: 72

Reputation: 27.5Reputation: 27.5Reputation: 27.5

PostPosted: Wed Apr 07, 2004 7:37 pm    Post subject: Reply with quote

Umm, nice command, but one thing... dazzy.. *lazy* code...

Quote:
{
  Category    => ':PFunny stuff',        
  Usage       => ['yomama              <-- tells you a yo mama joke',],
  Description => 'A random greek alphabet name',
};


umm... yomama is the usage? LMAO.... forgot to change that i think..

Good job to everyone Smile its interestin, Razz
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