User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
PiersR Newbie

Joined: 20 Dec 2003 Posts: 43
   
|
Posted: Tue Dec 30, 2003 11:09 pm Post subject: |
|
|
Erm its simple, In the most recent MSN.pm v.1.2.2 it syndicates how many users are on the bots allow list and saves it to a txt file. IN MSN.PM:
| Code: | | <br /> elsif ($cmd eq 'SYN')<br /> {<br /> $self->{Lists}->{SYN}->{Total} = $data[3];<br /> $self->writelog( "SYN'd Successfully Total Contacts\: $data[3]\n\n" );<br /><br /> print "SYN'd Successfully Total Contacts\: $data[3]\n\n";<br /><br /> open (DATA, ">users.txt");<br /> print DATA $data[3];<br /> close(DATA); |
then say you want to know how many users in a normal bot.pl youd have a command a bit like:
| Code: | | <br />open (FILE, "users.txt");<br />my @nousers = <FILE>;<br />close(FILE);<br />if ($msg =~ s/\!users//g) {<br />$self->sendmsg("@nousers have added me to there list!");<br />return;<br />} |
that will probably not work in wiredbots, ive never used wiredbots so i wouldn't know. but there *lazy* are, try converting it |
|
| Back to top |
|
 |
Vorx Senior Member

Joined: 21 Dec 2003 Posts: 152
   
|
Posted: Tue Dec 30, 2003 11:13 pm Post subject: |
|
|
| Thanks Piers, I'll give it a go but i'm not optimistic about the results lol |
|
| Back to top |
|
 |
eric256 The Keymaker

Joined: 03 May 2006 Posts: 2292 Location: Colorado
     
|
Posted: Wed Dec 31, 2003 2:07 am Post subject: |
|
|
I thought everyone knew I taught keenie everything he knows  _________________ Eric256
Proud previous owner and current admin of Bot-depot.com |
|
| Back to top |
|
 |
VIPER Young One

Joined: 22 Nov 2003 Posts: 50
   
|
Posted: Wed Dec 31, 2003 2:48 am Post subject: |
|
|
| is there one for clcools template?? |
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Wed Dec 31, 2003 9:28 am Post subject: |
|
|
wtf eric lol.
and viper its in MSN.PM, it doesnt matter which template you use |
|
| Back to top |
|
 |
|
|