User Control Panel
Advertisements

HELP US, HELP YOU!

MSN Bot template
Goto page 1, 2, 3, 4, 5  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots
View unanswered posts
Author Message
clcool
Senior Member
Senior Member


Joined: 02 Nov 2003
Posts: 171

Reputation: 37.1Reputation: 37.1Reputation: 37.1Reputation: 37.1

PostPosted: Tue Nov 11, 2003 4:05 pm    Post subject: Reply with quote

Okay, here is a bot template i've done, it's complete apart from msn.pm
The reason I didn't include it was because new ones keep coming out.

get msn.pm here

Here are the commands in the bot:
Code:
!time - tells the time<br />!leave - makes the bot leave the conversation<br />!invite <address> - Invites <address> into conversation<br /><br />!hardboot - Does a complete reboot<br />!reboot - Does a soft reboot, reloads replies<br />!offline - Sends the bot offline


Other features:
> Anti net jargon built in.
> Easy to add replies, just add into responce files

Download the bot template here

READ THE README AND COMMENTS!

_________________
http://www.polylogical.co.uk
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Wed Nov 12, 2003 5:56 pm    Post subject: Reply with quote

tried using this on my linux system but i get the error

Code:
Start called incorectly


not sure if its a problem on my side *lazy* just ure code!
Back to top
clcool
Senior Member
Senior Member


Joined: 02 Nov 2003
Posts: 171

Reputation: 37.1Reputation: 37.1Reputation: 37.1Reputation: 37.1

PostPosted: Wed Nov 12, 2003 7:47 pm    Post subject: Reply with quote

Try the following,


Replace

Code:
my $client = MSN->new();<br /><br />$client->connect('NLN','temp',$botuser,$botpass, '', { <br />    Status  => \&Status, <br />    Answer  => \&Answer, <br />    Message => \&Message, <br />    Join    => \&Join }<br />) or die "Error: Cannot connect to the MSN server! I'm not going online!";


With

Code:
my $msn = MSN->new('',Handle => $botuser, Password => $botpass);<br /><br />$msn->set_handler(Message   => \&Message);<br />$msn->set_handler(Status   => \&Status);<br />$msn->set_handler(Answer    => \&Answer);<br />$msn->set_handler(Join    => \&Join);<br /><br />$msn->connect();<br /><br />while (1)<br />{<br />    $msn->do_one_loop;<br />}


Also.. replace

Code:
$client->send('CHG', 'BRB');


With

Code:
$msn->send('CHG', 'BRB');


See if that sorts out your problem Smile

_________________
http://www.polylogical.co.uk
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Sun Nov 16, 2003 10:16 pm    Post subject: Reply with quote

Logs on now but i get another error
Not a schalar reference at bot.pl line 184
erm ill try nd fix this bit
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Sun Nov 16, 2003 10:21 pm    Post subject: Reply with quote

ok i fixed it
Replace
Code:
changed &send($$self,"$reply", "$username");

at line 184
to
Code:
changed &send($self,"$reply", "$username");


Just incase any 1 wanted to know!
Back to top
clcool
Senior Member
Senior Member


Joined: 02 Nov 2003
Posts: 171

Reputation: 37.1Reputation: 37.1Reputation: 37.1Reputation: 37.1

PostPosted: Mon Nov 17, 2003 4:05 pm    Post subject: Reply with quote

Ah yes. Thats something to do with the new msn.pm.. not sure what. :blink: Not keen on those $ and $$

Conffuuuusssiinngg...

_________________
http://www.polylogical.co.uk
Back to top
icey
Newbie
Newbie


Joined: 17 Nov 2003
Posts: 4

Reputation: 30.1Reputation: 30.1Reputation: 30.1

PostPosted: Mon Nov 17, 2003 11:29 pm    Post subject: Reply with quote

i dnt know wat i'm doing wrong but heres ma problem. I got *lazy* bot which is available in the downloads section working.but all it did was repeat wat i/ne1 *lazy* 2 it.i tryed 2 change this using the teach command and sum other stuff,but it didnt work at all.i then downloaded this template,did evrything in the read me but still it doesnt work.could any1 help??
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Nov 18, 2003 12:16 am    Post subject: Reply with quote

Just an idea but next time, take the time to speak english. I'm not opposed to foriegn languages or even bad spelling. I am opposed to people using '2' as a word and leaving out whole portions of words.

The short story is, if you want us to take the time to help you then do yourself a favor and take time to right in english.

Write proper english, take the time to make a nice post that gives us all the information we need in order to help you, and that we can read without a deciphering pad.

Also, i don't undersand which bot your question is in reference to. If your question is not directly related to this bot then please post it as a question in the general section under perl.

Thanks and please feel free to ask your question agian!

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Tue Nov 18, 2003 12:32 am    Post subject: Reply with quote

Um.. Eric? Did you proofread that message or did you do that on purpose to mock the icey dude?
Back to top
icey
Newbie
Newbie


Joined: 17 Nov 2003
Posts: 4

Reputation: 30.1Reputation: 30.1Reputation: 30.1

PostPosted: Tue Nov 18, 2003 1:23 pm    Post subject: Reply with quote

ok,here it is in english lol.

i don't know what i am doing wrong but heres my problem. I have got the bot which is available in the downloads section working(msn bot 1.1 i think).But all it did was repeat what me/anyone said to it.I tryed to change this using the teach command and some other stuff,but it did not work at all.When i double-clicked bot.pl it loaded in the command.exe window and that window suddenly dissapeared..I then downloaded this template,did evrything in the read me but that didnt work at all,it did the same thing the msn bot 1.1 did,opened up in a command.exe window and then the window dissapeared.could any1 help??
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Nov 18, 2003 2:11 pm    Post subject: Reply with quote

Instead of double clicking the file, goto start, run, type 'cmd' and hit enter. Then at that command prompt goto the directory your bot is in and run it from there.

Code:
<br />cd c:\<br />cd MSN-Bot<br />perl demo.pl<br />


Thats basicaly what i type to start my bot.

This way you get to see what errors your bot has.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Tue Nov 18, 2003 2:42 pm    Post subject: Reply with quote

We seem to always get more posts about people having problems with their bots. There's nothing interesting here for more advanced programmers. :huh: lol
Back to top
icey
Newbie
Newbie


Joined: 17 Nov 2003
Posts: 4

Reputation: 30.1Reputation: 30.1Reputation: 30.1

PostPosted: Tue Nov 18, 2003 5:13 pm    Post subject: Reply with quote

done all the fixes eric and the others have told but now my bot doesnt even start,if i run it thru cmd.exe it doesnt do nothing and goes back to the normal directory

Code:
C:\bots>bot.pl<br /><br />C:\bots>
Back to top
icey
Newbie
Newbie


Joined: 17 Nov 2003
Posts: 4

Reputation: 30.1Reputation: 30.1Reputation: 30.1

PostPosted: Tue Nov 18, 2003 5:54 pm    Post subject: Reply with quote

noooooo!!My bot logs on but when i send one of the built in commands suggested it goes offline.help!!!!
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Tue Nov 18, 2003 7:44 pm    Post subject: Reply with quote

Does it give you an error?

We need details, please!
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Bot Depot Forum Index -> Archived Bots All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 



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