|
| Author |
Message |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Tue Jun 28, 2005 1:28 am Post subject: Online Status |
|
|
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

Joined: 27 Jan 2005 Posts: 109 Location: Lewiston, ME
  
|
Posted: Wed Jun 29, 2005 1:23 am Post subject: |
|
|
| 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

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Wed Jun 29, 2005 1:25 am Post subject: |
|
|
| I went through a ton of threads. I couldn't find it. Could you post a link? |
|
| Back to top |
|
 |
malefactor Member

Joined: 27 Jan 2005 Posts: 109 Location: Lewiston, ME
  
|
|
| Back to top |
|
 |
Cheater Senior Member

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Wed Jun 29, 2005 1:54 am Post subject: |
|
|
| 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

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Wed Jun 29, 2005 9:42 am Post subject: |
|
|
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

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Wed Jun 29, 2005 12:00 pm Post subject: |
|
|
| ok, you completly lost me there dm. |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Wed Jun 29, 2005 2:36 pm Post subject: |
|
|
| 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

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Wed Jun 29, 2005 8:13 pm Post subject: |
|
|
| Would that work for aim as well? |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Wed Jun 29, 2005 8:31 pm Post subject: |
|
|
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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Jul 01, 2005 11:34 pm Post subject: |
|
|
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

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sat Jul 02, 2005 11:52 am Post subject: |
|
|
| 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

Joined: 10 Jun 2005 Posts: 236
  
|
Posted: Sat Jul 02, 2005 12:00 pm Post subject: |
|
|
| 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 |
|
 |
|