|
| Author |
Message |
2shae Newbie

Joined: 07 Jan 2006 Posts: 14
       
|
Posted: Sun Jan 08, 2006 9:46 pm Post subject: bot modification questions |
|
|
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

Joined: 07 Jan 2006 Posts: 14
       
|
Posted: Mon Jan 09, 2006 12:58 am Post subject: |
|
|
| please someone help me with this |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Mon Jan 09, 2006 6:57 pm Post subject: |
|
|
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

Joined: 07 Jan 2006 Posts: 14
       
|
Posted: Mon Jan 09, 2006 6:59 pm Post subject: |
|
|
| ive tried many times but havnt been able to figure it out |
|
| Back to top |
|
 |
alienz Almost An Agent

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Mon Jan 09, 2006 7:11 pm Post subject: |
|
|
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

Joined: 07 Jan 2006 Posts: 14
       
|
Posted: Mon Jan 09, 2006 7:19 pm Post subject: |
|
|
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

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Mon Jan 09, 2006 7:27 pm Post subject: |
|
|
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

Joined: 07 Jan 2006 Posts: 14
       
|
Posted: Mon Jan 09, 2006 7:49 pm Post subject: |
|
|
yes i got that to work perfectly, but i cant seem to get this line to work
$name = $self->getContactName($username); |
|
| Back to top |
|
 |
|