User Control Panel
Advertisements

HELP US, HELP YOU!

AIM FORMATTING

 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
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: Mon Mar 07, 2005 8:55 am    Post subject: Reply with quote

Some of my commands have \n's for new lines. They dont appear in AIM.

How can i do that?


Also i have dot points (decoded base 64) which don't show.


One last unrelated question, does net-oscar have a chat opened sub so the bot can send a welcome message? or do i have to detect typing or something?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Mar 07, 2005 12:45 pm    Post subject: Reply with quote

QUOTE(draget @ Mar 7 2005, 03:55 AM)
Some of my commands have \n's for new lines. They dont appear in AIM.

How can i do that?


Also i have dot points (decoded base 64) which don't show.


One last unrelated question, does net-oscar have a chat opened sub so the bot can send a welcome message? or do i have to detect typing or something?
[right][snapback]46464[/snapback][/right]


For line breaks: use
, not \n -- AIM is HTML-based, and as we all know,
makes a new line in HTML. Wink

And yes, Net::OSCAR has a chat_joined handler, that one is called when the bot successfully joins a chat room, so you can make a welcome message or something (there's also chat_buddy_in for when buddies enter, so you can greet individual buddies--the only problem is that if the bot enters an already populated room, chat_buddy_in is called for all members, so make a timeout thing so it will only greet NEW members that enter after the bot).

_________________
Current Site (2008) http://www.cuvou.com/
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: Mon Mar 07, 2005 1:06 pm    Post subject: Reply with quote

hmmm when i open a im window with the bot in AIM the handler does not get called

?
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Mon Mar 07, 2005 3:15 pm    Post subject: Reply with quote

QUOTE(draget @ Mar 7 2005, 05:06 AM)
hmmm when i open a im window with the bot in AIM the handler does not get called

?
[right][snapback]46495[/snapback][/right]


In AIM a two person chat is not a chat room. It is just a series of messages back and forth. You don't get any indication when someone opens a window. Only when they send a message.

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Mon Mar 07, 2005 4:13 pm    Post subject: Reply with quote

QUOTE(draget @ Mar 7 2005, 08:06 AM)
hmmm when i open a im window with the bot in AIM the handler does not get called

?
[right][snapback]46495[/snapback][/right]


You aren't going to be able to send a welcome message that way until you recieve a message from the user. Cer was explaining how to use CHAT ROOMs on Net::Oscar, those are different.

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


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

PostPosted: Mon Mar 07, 2005 7:56 pm    Post subject: Reply with quote

I think I should also add that MSN is fairly unique in how it works. On MSN, conversations are actually sockets... almost direct connections to another user (I say "almost" in that it's not a kind of connection in which a PeerHost (IP address) can be obtained).

On AIM, as well as almost all other Instant Messengers, you send a message to the server saying you want to say "hello" to "soandso." The server finds out whether or not "soandso" is even online, and then tells "soandso's" client that he received a message.

For another illustration, think of the P4 or "simulated" chat rooms on some MSN bots. You are in a one-on-one conversation chatting with your bot, and your bot is relaying messages to the other participants, yet you really are not in the same conversation as the others. There's just an intermediary, your bot, who tells your target that you sent them a message. That's how AIM works, the intermediary is the AIM server in this case.

And AIM hasn't built in any kind of server messages or responses for starting a conversation (although, if you want a kind of weaker way to do this, set up a TypingStatus handler, and if a user begins typing and the bot hasn't received IM's, the bot can assume it's a new conversation. This isn't exactly the same as it would be on MSN, but it's probably the best you can get).

_________________
Current Site (2008) http://www.cuvou.com/
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: Tue Mar 08, 2005 9:25 am    Post subject: Reply with quote

QUOTE(Cer @ Mar 7 2005, 11:56 AM)
And AIM hasn't built in any kind of server messages or responses for starting a conversation (although, if you want a kind of weaker way to do this, set up a TypingStatus handler, and if a user begins typing and the bot hasn't received IM's, the bot can assume it's a new conversation. This isn't exactly the same as it would be on MSN, but it's probably the best you can get).
[right][snapback]46535[/snapback][/right]




Hmmm, im going to go for cer's idea. Thanks all, now I understand aim a bit better!
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Tue Mar 08, 2005 6:55 pm    Post subject: Reply with quote

I've thought about using the typing status to do just that, but it's not very reliable since a user could start typing and stop and never say anything again.
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
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: Sun Mar 13, 2005 9:44 am    Post subject: Reply with quote

One question, do you people with good bots have welcome messages and if so how do you do it?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Mar 14, 2005 1:04 am    Post subject: Reply with quote

QUOTE(draget @ Mar 13 2005, 04:44 AM)
One question,  do you people with good bots have welcome messages and if so how do you do it?
[right][snapback]46847[/snapback][/right]


No bots I know of have welcome messages. If you know about SmarterChild, it's one of the AOL-sponsored bots (probably is the best of them), and so when AIM's protocol becomes capable of something, SmarterChild is the first to use it. But SmarterChild doesn't do welcome messages either (and it did do them when it used to use MSN too, so they know what welcome messages are Razz ).

So, no, I don't think anybody's bots have welcome messages on AIM.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions 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