Posted: Fri Oct 06, 2006 6:41 am Post subject: help, adding some code about avulotion bot
hello
I hope u guys can help me abot evulation bot
I am newbie and I wanted to add some code from maya bot to evulution bot,
I just wanted to get my user list. I meant how many people added me in their contact list.
u used that
Code:
# Get a list (a hash) of members.
my $members = $self->getMembers();
foreach my $member (keys %{$members}) {
# Write this message to each of the user's logs in the conversation.
&Writelog("./Logs/Users/$member.txt","$user: $msg");
I put that in evolution bot.pl under
Code:
sub Message{
but doesnt work, could you help me please what i must do..please help me
references the sub Writelog which you will need. you can put this anywhere in bot.pl just not in another sub as this may confuse things.
You should be able to find that sub somewhere in the Mayabot bot.pl
Also I'm not 100% sure but you should be able to find this out fairly easily does Evolution use $self for its msn.pm (I know I probably didn't phrase that to well but its the best way I could)