User Control Panel
Advertisements

HELP US, HELP YOU!

Net::AIM options

 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Fri Jan 23, 2004 5:39 am    Post subject: Reply with quote

I use Net::AIM (instead of Net::OSCAR)

I can't remember when or where in the forums this was mentioned, but I can't get some of the functions to work.

AIM saves buddy list information on their own servers, and I want to use that option.

I want the bot to add names to its buddy list using the function:
Code:
$aim->add_buddy($send_bool,$group,@buddies)
Mainly I want it so the bot can check if any admins are online...but that issue and code will be delt if I can get this to work.

In my admin.pl, which allows me to add/remove screennames to the admin.txt file, I added the function as follows:
Code:
$aim->add_buddy(1,"Admins",$who)
Where $who is the screenname I send the bot in my message. (And yes, Admins group exists spelled and capitalized exactly like that.) However, when I sign onto the bot's screenname (manually through AIM, not the perl program), there are no names listed in any of the groups.
Any ideas?

P.S. Does anyone know why the bot's buddy list includes "perlaim"?...who or what is it?
P.P.S. If I decide to use Net::OSCAR, do I have to change anything in my code other than "use Net::OSCAR"?...will I have to change all the "$aim->" functions to "$self->" or something else?

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Jan 23, 2004 5:58 am    Post subject: Reply with quote

You're very close. After you add or remove a buddy, you need to call send_config.

Code:
$aim->add_buddy( 1, 'Buddies', $screenname );<br />$aim->send_config();


and

Code:
$aim->remove_buddy( 1, 'Buddies', $screenname );<br />$aim->send_config();


perlaim is (was?) the screenname of the developer of Net::AIM. If you search in the module for perlaim, you can remove it. But remember to logon as your bot and delete that user or else it will come back.
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Fri Jan 23, 2004 6:08 am    Post subject: Reply with quote

I went in to AIM.pm and Connection.pm and deleted all instances of "perlaim"...& now the bot won't turn on!
_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Jan 23, 2004 6:32 am    Post subject: Reply with quote

You must have deleted something else by mistake.
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Fri Jan 23, 2004 6:45 am    Post subject: Reply with quote

Funny thing is...I made a copy before I deleted all the perlaim instances. I went back into the saved copy...& put the bot's screenname in all the places where perlaim is...and it still works ... eh

EDITED:...Also when I $aim->send_config(); will it take the screennames out of their respective groups and then block them? Or will it just block them?

What I did was have the bot add the victim to a group called Block and then do an $aim->add_deny()
...when I sign onto the screenname through AIM, the victim is no longer in its group, but is in the block list (found under Privacy).

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Fri Jan 23, 2004 1:53 pm    Post subject: Reply with quote

Yeah, send_config() sends the buddy lists, blocked lists, allow lists, buddy icons, profile, etc.
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Fri Jan 23, 2004 2:01 pm    Post subject: Reply with quote

No....what I meant was..

If tell the bot to
Code:
$aim->add_buddy(1,'Block',$who);<br />$aim->add_deny(1,'Block',$who);<br />$aim->send_config();
will the bot add the screenname to the group named "Block", and then actually block the screenname, or will it just block the screenname.

When I use that set of commands, and then sign on to the bot through AIM, there is no name in the Block group, but the screenname I asked to be blocked, does appear in the Block list (when you open preferences).

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Fri Jan 23, 2004 2:15 pm    Post subject: Reply with quote

If its showing up as blocked then what is the problem? I don't think aim shows blocked contacts on its buddy list, so ifyou block someone they go away.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Tony_shu
God Like
God Like


Joined: 12 Nov 2003
Posts: 624

Reputation: 42.9Reputation: 42.9Reputation: 42.9Reputation: 42.9

PostPosted: Fri Jan 23, 2004 2:18 pm    Post subject: Reply with quote

No real problem, its just after a while, depending on the individual, I'll unblock them and want to have them on a "Watch" list, so that if they act up again they can be blocked right away.
I want to try to move away from a 0-tolerance bot, and try (as Nate suggested earlier) to have a tolerance "account" for individuals/naughty words.

Also, when I block someone on my screenname, AIM keeps their name in the buddy list, but adds them to the "block list" (in Privacy settings)

_________________
Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Fri Jan 23, 2004 2:27 pm    Post subject: Reply with quote

If you want to track a user it would be better to store the info on your own machine instead of bastardizing AIM buddy lists to help. This way you can also store more info, like a records of blocks. so that say the user is just comming up for 'redemption' from being blocked but you notice that every month he floods it, gets blocked and then unblocked 2 weeks latter. Now you can see that and just leave him blocked and add him to your own, block forever list.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.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