User Control Panel
Advertisements

HELP US, HELP YOU!

Block Checker
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue Jan 25, 2005 4:02 pm    Post subject: Reply with quote

QUOTE(draget @ Jan 25 2005, 09:36 AM)
Packet sniff?

Anyone got any idea's for me?

http://www.etherdetect.com

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Tue Jan 25, 2005 6:02 pm    Post subject: Reply with quote

getContactStatus returns a string or 0 if the given contact can not be found. Alienz had it right, if you want to check for a specific status, you can check for NLN, AWY, etc. If you get the value 0 returned, then that contact does not exist on one of your lists. Here is a better code snippet, but it's still not going to work (see below):

Code:
<br />my $contact = 'email@domain.com';<br /><br />if($contact) {<br /><br />$self->addContact($contact);<br /><br />sleep(1);<br /><br />my $cs = $self->getContactStatus($contact);<br /><br />if($cs != 0) {<br />$self->sendMessage( "$contact\'s Status is $cs !" );<br />}<br /><br />else {<br /><br />$self->sendMessage( "Unsuccessful! Please check e-mail and try again." );<br />}<br /><br />sleep(1);<br /><br />$self->remContact($contact);<br /><br />}<br /><br /><br />else {<br /><br />$self->sendMessage( "To retrieve the users status please type %statcheck email \n\neg. %statcheck email\@hotmail.com");<br /><br />}


As Cer pointed out, you should not use $1, because it is a special variable in Perl and while it may work, it's a bad idea and it's not very readable either. Also, you were using the send method which is not a method in MSN.pm (for MSN 2.0). I would suggest upgrading to MSN 2.0.

But the bigger problem is that just adding a contact and waiting 1 second (incidentally, using sleeps is very bad as it stops your entire bot) will not put them on your contact list until the person you added allows you to see them, which probably won't happen within 1 second.
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Tue Jan 25, 2005 11:57 pm    Post subject: Reply with quote

Quote:
for someone calling other people dumb, you should learn to spell things like "their".

*cough* you're just trying to start a fight, I was just saying that was a "Dumb" way of "doing it", I didn't say you were dumb soo calm your horses.

btw. 217 would always be returned if they weren't added to the convo or its another bug in MSN. Wink

Oh and for it to work, you need them to accept the bot on there list.
Back to top
Siebe
God Like
God Like


Joined: 06 Jan 2004
Posts: 562
Location: Netherlands
Reputation: 39.8Reputation: 39.8Reputation: 39.8Reputation: 39.8

PostPosted: Wed Jan 26, 2005 12:30 am    Post subject: Reply with quote

Biggie is right. Block checkers no longer work.
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Jan 26, 2005 2:23 am    Post subject: Reply with quote

the last tim i saw onw work it worked something like this:

send CAL if == RINGING) the user is online

-> CAL 14 matt@test.com
<- CAL 14 RINGING 616126

otherwise error..

-> CAL 17 matt@test.com
<- 217 17

thats what the status checker on this site uses, and it seems to work.

_________________
[ matt ]
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Wed Jan 26, 2005 2:32 am    Post subject: Reply with quote

matt, I remember we talked about that a while back and I'd started adding it to MSN.pm, but I had some issue and forgot about it. If you can get it to work add it to 2.5.
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Wed Jan 26, 2005 5:29 am    Post subject: Reply with quote

thanks matt, i might just give up though, what you gave me is quite beyond me.

*waits and hopes for 2.5*
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Wed Jan 26, 2005 6:21 am    Post subject: Reply with quote

QUOTE(..::BIGmouth( )::.. @ Jan 25 2005, 06:57 PM)
*cough* you're just trying to start a fight, I was just saying that was a "Dumb" way of "doing it", I didn't say you were dumb soo calm your horses.

Once again, there was nothing dumb about it. I didn't see you offer anything useful either.

_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
brother
Senior Member
Senior Member


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Wed Jan 26, 2005 9:11 am    Post subject: Reply with quote

Actually the CAL command would return 217 if the users was offline normally, and 216 if the user has your bot blocked. But since it was abused massively for block checking, the MSN devs have changed it so it always returns 217.

I think there is no way of checking wether the user has blocked you using only one passport, besides the fact the user is permanently offline (and you'll still have to add the person to your FL if you want to check for that).

Anyhow, there is a simple way of 'block checking' using mirrors, still it will annoy your users:

Make a simple mirror system, where the bot handles a number of passports: its primary ones, that people add to use it and maybe one or two spare ones you can use to add people to the FL, and comparing the results... If some mirrors pick the user up as online, and others do not, you can be sure the user has the others blocked/privacylocked.

Still, i wouldn't recommend it, as this kind if system will spam users with 'add' notifications...
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Jan 26, 2005 9:19 am    Post subject: Reply with quote

i still think the cal method is best for a "block checker" because it will check for anyone even in tere not on your list unless the user has blocked your bot, but if you were useing this to se if a person blocked you not your bot it would work, and you dont have to annoy the user, you dont even have to add them Razz
_________________
[ matt ]
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Wed Jan 26, 2005 9:59 am    Post subject: Reply with quote

Any code for this 'cal' method?
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Jan 26, 2005 10:03 am    Post subject: Reply with quote

it will need to writen in to the msn.pm
_________________
[ matt ]
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Wed Jan 26, 2005 10:04 am    Post subject: Reply with quote

Ok, thanks everyone!
Back to top
brother
Senior Member
Senior Member


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Jan 27, 2005 3:33 pm    Post subject: Reply with quote

QUOTE(mattaustin @ Jan 26 2005, 01:19 AM)
i still think the cal method is best for a "block checker" because it will check for anyone even in tere not on your list unless the user has blocked your bot, but if you were useing this to se if a person blocked you not your bot it would work, and you dont have to annoy the user,  you dont even have to add them Razz

But if they are online, they will be added to the convo...

So it's still pretty annoying methinks.
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Thu Jan 27, 2005 4:19 pm    Post subject: Reply with quote

extraBOT (bot@extrabot.net) manages it. Surely you supreme coders can?
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 



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