User Control Panel
Advertisements

HELP US, HELP YOU!

Users
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 4:14 pm    Post subject: Reply with quote

Hi,

Is there any way that my wiredbots template can somehow be modified to allow me to see how many people use the bot?

I'd prefer to see how many people have added it to their contacts rather than how many are using it right now.

I know there is a template which has it built in and it displays it on the DOS window so I have no preference whether its on the DOS window or in a command.

Hope someone could help me.

Thanks,
Nick
Back to top
Sypher_old
Newbie
Newbie


Joined: 30 Dec 2003
Posts: 14

Reputation: 28.9Reputation: 28.9Reputation: 28.9

PostPosted: Tue Dec 30, 2003 8:03 pm    Post subject: Reply with quote

I'm looking for that too! Smile

So I hope some1 can help us Wink
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 Dec 30, 2003 8:10 pm    Post subject: Reply with quote

You can look in the WiredBots "logs" folder, it records the conversation it has with everybody it talks to (or anybody who talks to it, regardless of it replying). Just see how many files are in there (on Windows it will show the number of files on the status bar at the bottom)
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 8:14 pm    Post subject: Reply with quote

Hi thanks Nate.

I did take that into consideration but it could be quite time consuming if the bot ever got popular, and also it's not a reliable way of measuring because these logs could be from weeks ago and people could have removed the bot from their lists.

You see what I mean?
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 Dec 30, 2003 8:17 pm    Post subject: Reply with quote

Oh, so you want a current up-to-date measure of how many people have your bot on their list?

I don't know if you can do that on the MSN module, the closest you could get is use the other part of that while(1) loop to see if each user appears online, but it could still be possible they removed the bot from their list (but just didn't block it)
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 8:22 pm    Post subject: Reply with quote

Hi again.

Well I don't really mind HOW I find the user amount, but as long as it's fairly accurate (within a week) and fairly easy to implement as I'm new to Perl and bots.

I spose I could make a Batch script or something to delete all logs over a week old but again that's a bit long winded and it's a lot easier to view it within the bot itself.
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 Dec 30, 2003 8:26 pm    Post subject: Reply with quote

You could have your bot change the style of log recording (it won't be easily readible, but the bot could understand it)

In the log_im.pl is where it saves the logs. Have it save in a format like this:

Code:
my $time = localtime();<br />open (LOG, ">>logs/$victim.txt");<br />print LOG "$time||$victim: $msg\n";<br />print LOG "$time||$screenname: $reply\n";<br />close (LOG);


That would be an example of how to save the logs, it would save like this:
Code:
Tue Jan 2 16:14:30 2004||HumanBlue: hello<br />Tue Jan 2 16:14:30 2004||SuperBot: Hey there!


Ok, and then you can do something with the timestamps or something. I'm not exactly sure how to use localtime() as like an array or for comparing dates or whatnot. Maybe somebody who does will reply here. Razz
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 8:29 pm    Post subject: Reply with quote

Thanks Nate,

Here's my section of log_im.pl could you please tell me if I need to totally overwrite it with your code or just replace a few things.

Here's mine:
Code:
<br /> #Write it to a log in the logs folder.<br />    open (DATA, ">>logs/$victim.txt");<br />    print DATA "<$victim> $msg\n<$screenname> $reply\n";<br />    close(DATA);<br />


Thanks
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Tue Dec 30, 2003 10:23 pm    Post subject: Reply with quote

1. get the newest msn.pm, i know 1.2 has it 1.2.1 probably does to
2. it will show up in the dos window if you keep debug on regardless of what template you use
3. its stored in $self->{Lists}->{SYN}->{Total}

Smile


that will tell you everyone who has added it, since for each person whos adds it you will get a syn responce. but if people delete it you still get the syn responce so if you want just people who still have it you would have to modify msn.pm a bit
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 10:24 pm    Post subject: Reply with quote

Do you mean the newest MSN.pm or Wiredbots bot.pl? And is there any other ways to make this possible or would it be too hard?
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Tue Dec 30, 2003 10:26 pm    Post subject: Reply with quote

msn.pm...

and its not hard, i wrote it into the msn.pm just for this purpose since i like knowing too Smile
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 10:33 pm    Post subject: Reply with quote

I have MSN Module 1.2.1 if that's any use.

Could you give me some more information please?
Back to top
Scott
Member
Member


Joined: 29 Nov 2003
Posts: 134

Reputation: 32.3Reputation: 32.3Reputation: 32.3

PostPosted: Tue Dec 30, 2003 10:35 pm    Post subject: Reply with quote

i am working on a command for it to do it in the conversation, you should know how to do it keenie i'm sure john taught you or are you still denying it that he taught you all you know
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Tue Dec 30, 2003 10:45 pm    Post subject: Reply with quote

its written into msn.pm, if they cant figure out how to access a variable then their out of luck, also keep your mouth shut scott, anyone who knows me also knows ive never once asked john for anything.
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Tue Dec 30, 2003 10:48 pm    Post subject: Reply with quote

Well thanks for all the help guys, and Scott, if you do manage to get this command working would you be kind enough to share it please?

Thanks again Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



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