|
| Author |
Message |
AdamW Newbie

Joined: 20 Dec 2005 Posts: 12
    
|
Posted: Wed Dec 21, 2005 10:36 am Post subject: a bot that invites another bot in? |
|
|
| if i wanted to make a bot that when someone says something invites another bot in (like a hangman bot) would it be possible? i dont know the code for it! |
|
| Back to top |
|
 |
Addict Not Yet a God

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Wed Dec 21, 2005 2:41 pm Post subject: |
|
|
| Code: | if($message =~/^hangman bot/i){
$self->sendMessage("Inviting hangman!");
$self->invite("hangman@tcsbot.com");
} |
Is that what you mean? You just have to send the invite command to the servers. Easy. |
|
| Back to top |
|
 |
AdamW Newbie

Joined: 20 Dec 2005 Posts: 12
    
|
Posted: Thu Dec 22, 2005 3:13 am Post subject: |
|
|
| thanks! (what file do i add that line into?) |
|
| Back to top |
|
 |
AdamW Newbie

Joined: 20 Dec 2005 Posts: 12
    
|
Posted: Thu Dec 22, 2005 3:47 am Post subject: im using maya 4.0 |
|
|
not sure if im doing this right, made a public command called !invite. code is as follows:
&send($self,"Inviting hangman!");
&send($self->invite("7800gtx.man@gmail.com");
and it generates an error log that says...
[22-12-2005/16:53:00] invite.maya produced the following error.
syntax error at (eval 19) line 2, at EOF
so im not sure what im doing wrong! |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Thu Dec 22, 2005 4:08 am Post subject: |
|
|
Mayabot sucks, whoever's genius idea it was to not allow you to use $self the way you should be allowed to can go to hell and burn.
Try just $self->invite, skip the &send stuff and if Maya still bitches you out about it, go kill whoever programmed it. Maya can be considered a virus. Viruses are destructive, and disallowing your ability to use Perl the way it should've been used definitely classifies it as a virus. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
AdamW Newbie

Joined: 20 Dec 2005 Posts: 12
    
|
Posted: Thu Dec 22, 2005 4:15 am Post subject: |
|
|
| errr okay so what bot do you recommend? i was gunna install SDBA |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
|
| Back to top |
|
 |
|