User Control Panel
Advertisements

HELP US, HELP YOU!

bot modification questions

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage
View unanswered posts
Author Message
2shae
Newbie
Newbie


Joined: 07 Jan 2006
Posts: 14

Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3

PostPosted: Sun Jan 08, 2006 9:46 pm    Post subject: bot modification questions Reply with quote

im currently using mayabot 4 and its all going fine, but i want to do the following,
that when someone adds mayabot to there list that the bot automaticly adds them to, so it can see when they change there status etc

i want to make a log of when people change there display name, eg from 2shae to ~2shae~

this is all im trying to get right now, the main part is the display bit, i dont mind how long it takes to get the auto adding of people bit
Back to top
2shae
Newbie
Newbie


Joined: 07 Jan 2006
Posts: 14

Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3

PostPosted: Mon Jan 09, 2006 12:58 am    Post subject: Reply with quote

please someone help me with this
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Mon Jan 09, 2006 6:57 pm    Post subject: Reply with quote

Look at the handlers used in the MSN.pm module and you will be able to do what you want.
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
2shae
Newbie
Newbie


Joined: 07 Jan 2006
Posts: 14

Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3

PostPosted: Mon Jan 09, 2006 6:59 pm    Post subject: Reply with quote

ive tried many times but havnt been able to figure it out
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Mon Jan 09, 2006 7:11 pm    Post subject: Reply with quote

Saying "I've tried and it doesn't work" doesn't let anyone understand what you're trying to do. Post code, post errors, etc

The MSN module has a handler, ContactAddingUs, which is called when a user adds you. All you have to do is then add that user to your own contact list at that time and you can then monitor their status with the Status handler.

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


Joined: 07 Jan 2006
Posts: 14

Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3

PostPosted: Mon Jan 09, 2006 7:19 pm    Post subject: Reply with quote

yes i know that, but ive tried adding the line
addContact($username)
but it just causes an error
Back to top
alienz
Almost An Agent
Almost An Agent


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

PostPosted: Mon Jan 09, 2006 7:27 pm    Post subject: Reply with quote

That's correct, but you need to do it with the Messenger object you created, for example $messenger->addContact($user)
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
2shae
Newbie
Newbie


Joined: 07 Jan 2006
Posts: 14

Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3Reputation: 7.3

PostPosted: Mon Jan 09, 2006 7:49 pm    Post subject: Reply with quote

yes i got that to work perfectly, but i cant seem to get this line to work
$name = $self->getContactName($username);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage 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