User Control Panel
Advertisements

HELP US, HELP YOU!

Online Status

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Tue Jun 28, 2005 1:28 am    Post subject: Online Status Reply with quote

Sure there are different image online status things for aim/msn that use HTML. But since (at least on aim not sure about msn) you can't send images they don't do any good. An idea I had was to change it so that instead of an online offline image, it uses text. The command would work like this:
User: !onlinestatus person22
Bot: person22 is offline

User: !onlinestatus guy33
Bot: guy33 is online

Once again, juggernaut is great, but other bots would do.
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Wed Jun 29, 2005 1:23 am    Post subject: Reply with quote

there is a topic on this board about that. My AIM bot uses code from that topic (with slight modifaction) to check if people are online.
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jun 29, 2005 1:25 am    Post subject: Reply with quote

I went through a ton of threads. I couldn't find it. Could you post a link?
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Wed Jun 29, 2005 1:32 am    Post subject: Reply with quote

i don't know what the url is for the topic on the new forum...
but did a search on the old forum and here it is

http://www.bot-depot.com/forums/index.php?showtopic=581&hl=status
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jun 29, 2005 1:54 am    Post subject: Reply with quote

That seems as if it is for people on your buddy list only. My bot already shows when people sign on and off for my buddy list. I need a way to get the online status of anyone through a command
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: Wed Jun 29, 2005 9:42 am    Post subject: Reply with quote

Find the data for image1.gif in text format (open in notepad), and the same for image2.gif. Then, do a simple GET to the onlinestatus.org servers to get the image, and if the image *includes* the same data as the online image, output that they're online. ETC.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jun 29, 2005 12:00 pm    Post subject: Reply with quote

ok, you completly lost me there dm.
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: Wed Jun 29, 2005 2:36 pm    Post subject: Reply with quote

Code:

my $text_online = get('http://online-status.org/online.gif');
my $text_offline = get('http://online-status.org/offline.gif');

my $status = get('http://online-status.org/msn/username@hotmail.com');

if ($status =~ $text_online)
{
# online
}
else
{
# Offline
}


Type thing...

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Wed Jun 29, 2005 8:13 pm    Post subject: Reply with quote

Would that work for aim as well?
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: Wed Jun 29, 2005 8:31 pm    Post subject: Reply with quote

Yes. Obviously you'll have to edit the URLs, and do a more complicated IF statement, as the image data won't work well in a string, unless it's BINMODE'd.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Fri Jul 01, 2005 11:34 pm    Post subject: Reply with quote

Probably a more efficient way of doing this would be to use the buddylist...

Add the screenname of the one you're checking in a hashref (maybe put other info as far as who called the command, etc.)...

$chaos->{system}->{online_checker}->{$sn} = $client;

And then add it to your buddylist, and in your buddy_in handler, see if that big long hashref exists ($sn being the target's screenname), and so if that guy signs on, you know he's online, you can delete him from the bot's buddylist and send a message back to $client (which is the value of that hashref).

_________________
Current Site (2008) http://www.cuvou.com/
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: Sat Jul 02, 2005 11:52 am    Post subject: Reply with quote

Quote:
That seems as if it is for people on your buddy list only. My bot already shows when people sign on and off for my buddy list. I need a way to get the online status of anyone through a command


Kirsle....

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Sat Jul 02, 2005 12:00 pm    Post subject: Reply with quote

DM, in Cer's you are adding the name of the person to check to the buddy list. So it would work for anyone. In that quote, I meant that I didn't want to have to add everyone by hand to the buddy list. I think cer's is what I need.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas 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