This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Stats.Mod Message Request...

Discussion of Eggdrop's code and module programming in C.
Post Reply
R
Romeyo
Voice
Posts: 12
Joined: Tue Nov 01, 2005 10:56 am

Stats.Mod Message Request...

Post by Romeyo »

Hi ..
I am using the stats.mod .. i wonder can i limit the pvt message commands like top10 #chan and stat #chan nick only to peoples with n flag? I changed the binds for public command to n flag in the stats.conf.. Another thing is the bot takes some time when loading or upon startup.. statsmod.dat file is more than 10mb..
Thanks in advance :)
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

Hi,
Can't help you directly with the privmsg-commands,maybe you could try unbinding (like it's done in the stats.conf for the pubmsg's) and bind agian with the flags you desire. I'ts only a suggestion.....

To speed up the loading of your bot it's recommended to do a .purgestats once in a while to erase users that haven't been on your channel for some time, (also do .sumuser for people who change hosts alot -- then .purgestats again).

You also can try switching off wordstats, wich van verry cpu- and memory consuming..

GRTZ
R
Romeyo
Voice
Posts: 12
Joined: Tue Nov 01, 2005 10:56 am

Thanks :)

Post by Romeyo »

Hiya ppls,
Thanks... i myself found out the way by typing binding all the message commands to the thing it points in the module file ... I came here to share it... Here is the code i have added in the stats.conf file for those who may want it in future..

Code: Select all

catch "unbind msg n|n top10 *msg:top10"
catch "unbind msg n|n ttop10 *msg:ttop10"
catch "unbind msg n|n top20 *msg:top20"
catch "unbind msg n|n ttop20 *msg:ttop20"
catch "unbind msg n|n stat *msg:stat"
catch "unbind msg n|n tstat *msg:tstat"
catch "unbind msg n|n place *msg:place"
catch "unbind msg n|n tplace *msg:tplace"
catch "unbind msg n|n wordstats *msg:wordstats"
catch "unbind msg n|n topwords *msg:topwords"
catch "unbind msg n|n setemail *msg:setemail"
catch "unbind msg n|n sethomepage *msg:sethomepage"

bind msg n|n top10 *msg:top10
bind msg n|n ttop10 *msg:ttop10
bind msg n|n top20 *msg:top20
bind msg n|n ttop20 *msg:ttop20
bind msg n|n place *msg:place
bind msg n|n tplace *msg:tplace
bind msg n|n stat *msg:stat
bind msg n|n tstat *msg:tstat
bind msg n|n wordstats *msg:wordstats
bind msg n|n topwords *msg:topwords
bind msg n|n setemail *msg:setemail
bind msg n|n sethomepage *msg:sethomepage
Anyway Thanks for helping out... Dusk :)
User avatar
dusk
Halfop
Posts: 91
Joined: Sun Mar 06, 2005 7:25 pm
Location: Belgium

Post by dusk »

Hi,

That was exactly what I meant :) ,

thx is ,altough very friendly, not really nescesary, tha's what a forum is for , is it not? :p

You're welcome btw.

GRTZ
Post Reply