User Control Panel
Advertisements

HELP US, HELP YOU!

MayaBot Commands

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
Peter's MSN Bot
Young One
Young One


Joined: 24 Feb 2004
Posts: 86

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Tue Feb 24, 2004 2:18 pm    Post subject: Reply with quote

As I Have Been Looking Around This Fourm I Have Noticed That There Are Not Many MayaBot Commands Avalible!

As This Is The Only Bot I Can Get Working Please May You Post As Many Commands For MayaBot As Possable For Me And The Other Users Of MayaBot That Are Having Problems Finding Commands

If Possable Can Someone Please Create A Tutorial For Converting Commands For Other Bots To MayaBot Format (Or Is Possable A Piece Of Software To Do It For Me)

Thank You

P.S. I Will Post My Commands I Have @ The Moment!
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Tue Feb 24, 2004 2:29 pm    Post subject: Reply with quote

I posted a simple tutorial for converting commands.

Just copy the command's body (below the @_ line and above the closing } symbol)

http://www.bot-depot.com/forums/index.php?act=ST&f=14&t=1101

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Peter's MSN Bot
Young One
Young One


Joined: 24 Feb 2004
Posts: 86

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Tue Feb 24, 2004 3:01 pm    Post subject: Reply with quote

Thanks Cer But We Need A Tutorial For Converting Commands To MAYABOT Not Andronima Thanks Anway!

Some Of The Commands I Use :


Shutdown Bot (And Notify All Users) :
Code:
<br />if ($msg =~ /^shutdown/i) {<br />            &send($self,"Bot Shutting down.", "$username"); <br />            $msn->set_name("NOTICE : BOT NAME Is Shuting Down");<br />            $self->set_status('HDN');<br />            $self->set_status('NLN');<br />            $self->set_status('HDN');<br />            $msn->set_name("BOT NAME");<br />            exit(1);<br />}<br />


Usage : shutdown (e.g. !shutdown)
Recommand User Level : Admin Only
Other Notes : Change "BOT NAME" To Your Bots Name



Force The Bot To Leave The Chat!
Code:
<br />if ($msg =~ /^forceleave/i) {<br />            &send($self,"BOT NAME Leaving.", "$username");<br />            $self->sendraw("OUT\*lazy*\n");<br />            goto end;<br />}<br />


Usage : forceleave (e.g. !forceleave)
Recommand User Level : Mod OR Admin
Other Notes : Change "BOT NAME" To Your Bots Name



Clear The Chat Window Of Text (Has Its Uses!) :
Code:
<br />if ($msg =~ /^clear/i) {<br />       &send($self,".\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n.\n", "$username");<br />}<br />

Usage : clear (e.g. !clear)
Recommand User Level : Mod OR Admin
Other Notes : Dosent Clear Just Puts A Message So Long That People Cant See What You Have Chatted About (For A Command That Does Clear The Chat Window I Recommend MSN Plus!



Send One (Ok Quite A Few) Of Those Funny Popup Things:
Code:
<br />if ($msg =~ /^popup (.*)/i) {<br />       my $pop = $1;<br />       $msn->set_name($1);<br />       $self->set_status('HDN');<br />       $self->set_status('NLN');<br />       $self->set_status('HDN');<br />       $self->set_status('NLN');<br />       $self->set_status('HDN');<br />       $self->set_status('NLN');<br />       $self->set_status('HDN');<br />       $self->set_status('NLN');<br />       $self->set_status('HDN');<br />       $self->set_status('NLN');<br />       $msn->set_name("BOT NAME");<br />       goto end;<br />}<br />


Usage : popup (e.g. !popup TEST MESSAGE)
Recommand User Level : Admin Only
Other Notes : Change "BOT NAME" To Your Bots Name



Change Bot Name :
Code:
<br />if ($msg =~ /^dn (.*)/i) {<br />        my $name = $1;<br />        $msn->set_name($name);<br />        &send($self,"Display name set to $1", "$username");<br />        goto end;<br />}<br />


Usage : dn (e.g. !dn My MSN Bot)
Recommand User Level : Admin Only
Other Notes : None



Reboot The Bot:
Code:
<br />if ($msg =~ /^reboot/i) {<br />        &send($self,"Rebooting. Please Exit This Chat!!!", "$username");<br />        $msn->set_name("Notice : BOT NAME Is Rebooting Please Close All Chats!");<br />        $self->set_status('HDN');<br />        $self->set_status('NLN');<br />        $self->set_status('HDN');<br />        $msn->set_name("BOT NAME");<br />        $msn->send('CHG', 'BRB');<br />        system "perl bot.pl";<br />        goto end;<br />}<br />


Usage : reboot (e.g. !reboot)
Recommand User Level : Admin Only
Other Notes : This Is Standed With MayaBot (So Is !shutdown) But This Now Incoporates The Popup Message. I Would Also Recomend Changing !reboot To An Admin Command As Mod May Get A Bit Silly And Over Use It.



Bot Status Changes :
Code:
<br />Online :<br /><br />if ($msg =~ /^online/i) {<br />&send($self, "Bot online :D");<br />$self->set_status('NLN');<br />goto end;<br />}<br /><br /><br />Busy :<br /><br />if ($msg =~ /^busy/i) {<br />&send($self, "Bot Busy :D");<br />$self->set_status('BSY');<br />goto end;<br />}<br /><br /><br />Be Right Back :<br /><br />if ($msg =~ /^brb/i) {<br />&send($self, "Bot Will Be Right Back :D");<br />$self->set_status('brb');<br />goto end;<br />}<br /><br /><br />Away :<br /><br />if ($msg =~ /^away/i) {<br />&send($self, "Bot Away :D");<br />$self->set_status('AWY');<br />goto end;<br />}<br /><br /><br />Offline :<br /><br />if ($msg =~ /^offline/i) {<br />&send($self, "Bot offline :(");<br />$self->set_status('HDN');<br />goto end;<br />}<br />


Usage :
  • Online online (e.g. !online)
  • Busy busy (e.g. !busy)
  • Be Right Back brb (e.g. !brb)
  • Away away (e.g. !away)
  • Offline offline (e.g. !offline)
Recommand User Level : Admin Only
Other Notes : None



FAKE Leave :
Code:
<br />if ($msg =~ /^leave/i) {<br />         &send($self,"Bot Leaving.", "$username");<br />         &send($self,"Exit Failed.", "$username");<br />         goto end;<br />}<br />


Usage : leave (e.g. !leave)
Recommand User Level : Public
Other Notes : Dosent Make The Bot Leave! Use !forceleave See ^^^^!








Bot's Time :
Code:
<br />if ($msg =~ /^time/i) {<br />         &send($self, sorttime(), "$username");<br />         goto end;<br />}<br />


Usage : time (e.g. !time)
Recommand User Level : Public
Other Notes : Comes With MayaBot





Make The Bot Say Something :
Code:
<br />if ($msg =~ /^Say (.*)/i) {<br />      my $words = $1;<br />      &send($self, "$1", "$username");<br />      goto end;<br />}<br />


Usage : say (e.g. !say *lazy* suck)
Recommand User Level : Public
Other Notes : Will Not Process Commands Said, Like If I Put :
Quote:
Me : !say !makeadmin peter@petercorcoran.co.uk
Bot : !makeadmin peter@petercorcoran.co.uk

If I Logged In And Typed !makeadmin peter@petercorcoran.co.uk It Would Make : peter@petercorcoran.co.uk An Admin (If I Had Working Code To Do This)




Simple Ping Command :
Code:
<br />if ($msg =~ /^ping/i) {<br />       &send($self,"Pong", "$username");<br />       goto end;<br />}<br />


Usage : ping (e.g. !ping)
Recommand User Level : Public
Other Notes : Just Replys Pong




Race Command :
Code:
<br />if ($msg =~ /^race/i) {<br />         &send($self,"The Bot Is The Dog\nPeter Is The Cat\n$username Is The Snail\n1)____(&)\n2)________(@)\n3)(sn)\nThe Cat Wins!!!!!", "$username");<br />goto end;<br />}<br />


Usage : race (e.g. !race)
Recommand User Level : Public
Other Notes : Not A Real Race (I Need Code For A Race Like This PLease)


Before You Add Code Use This Template :
Command Name :
Code:
<br />Command Code<br />


Usage : command (e.g. !command)
Recommand User Level : User Level
Other Notes : NOTES
Back to top
farkie
God Like
God Like


Joined: 15 Nov 2003
Posts: 673

Reputation: 3.4Reputation: 3.4Reputation: 3.4

PostPosted: Tue Feb 24, 2004 3:13 pm    Post subject: Reply with quote

why did *lazy* paste them <_<
Back to top
Peter's MSN Bot
Young One
Young One


Joined: 24 Feb 2004
Posts: 86

Reputation: 28.5Reputation: 28.5Reputation: 28.5

PostPosted: Tue Feb 24, 2004 3:26 pm    Post subject: Reply with quote

so others can use em!
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Tue Feb 24, 2004 7:46 pm    Post subject: Reply with quote

Alright, like in that commands tutorial, same kind of thing:

Instead of
Code:
sub die {<br />   ... = @_;

You do:
Code:
if ($msg =~ /^die/i) {


And you should be able to figure the rest out.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Gavin
God Like
God Like


Joined: 15 Mar 2004
Posts: 661
Location: Manchester, UK
Reputation: 36.2Reputation: 36.2Reputation: 36.2Reputation: 36.2

PostPosted: Wed Mar 24, 2004 7:25 pm    Post subject: Reply with quote

in your reboot command instead of having it so the bot messages every1 saysing close chats *lazy* dnt *lazy* just use this command it changes the bots status to offline then puts it *lazy* on again its much easyier

if ($msg =~ /^reboot/i) {
$msn->send('CHG', 'OFFLINE');
&send($self,"Cube Bot Rebooting.", "$username");
$self->sendraw("OUT\*lazy*\n");
system "perl bot.pl";
goto end;
}

_________________
MSN: gavin [at] gavinbrittain [dot] co [dot] uk
E-Portfolio: www.gavinbrittain.co.uk (New version comming soon)
Back to top
rickbot
Young One
Young One


Joined: 12 Mar 2004
Posts: 55

Reputation: 27.3Reputation: 27.3Reputation: 27.3

PostPosted: Thu Mar 25, 2004 9:01 pm    Post subject: Reply with quote

You could download mophious. that has commands, pretty usefull ones too. they work with maya..as they are the same..i think.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help 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