User Control Panel
Advertisements

HELP US, HELP YOU!

a bot that invites another bot in?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage
View unanswered posts
Author Message
AdamW
Newbie
Newbie


Joined: 20 Dec 2005
Posts: 12

Reputation: 4.9Reputation: 4.9Reputation: 4.9Reputation: 4.9

PostPosted: Wed Dec 21, 2005 10:36 am    Post subject: a bot that invites another bot in? Reply with quote

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
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Wed Dec 21, 2005 2:41 pm    Post subject: Reply with quote

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
Newbie


Joined: 20 Dec 2005
Posts: 12

Reputation: 4.9Reputation: 4.9Reputation: 4.9Reputation: 4.9

PostPosted: Thu Dec 22, 2005 3:13 am    Post subject: Reply with quote

thanks! (what file do i add that line into?)
Back to top
AdamW
Newbie
Newbie


Joined: 20 Dec 2005
Posts: 12

Reputation: 4.9Reputation: 4.9Reputation: 4.9Reputation: 4.9

PostPosted: Thu Dec 22, 2005 3:47 am    Post subject: im using maya 4.0 Reply with quote

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
Upgraded Agent


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

PostPosted: Thu Dec 22, 2005 4:08 am    Post subject: Reply with quote

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
Newbie


Joined: 20 Dec 2005
Posts: 12

Reputation: 4.9Reputation: 4.9Reputation: 4.9Reputation: 4.9

PostPosted: Thu Dec 22, 2005 4:15 am    Post subject: Reply with quote

errr okay so what bot do you recommend? i was gunna install SDBA
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Thu Dec 22, 2005 5:28 am    Post subject: Reply with quote

You can find some bots here - Botworld Downloads
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage 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