4
0

stats.conf 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. ######
  2. #####
  3. ### General Settings
  4. #####
  5. ######
  6. # the file where the data is stored
  7. # WARNING: Always set this var _before_ the module is loaded, or it won't
  8. # find your stats.
  9. set statsfile "statsmod.dat"
  10. # load the module itself
  11. loadmodule stats
  12. # save data every x minutes
  13. set save-stats 15
  14. # add new users to the database if they stay more than x minutes
  15. # in the channel
  16. # >0: enabled
  17. # 0: don't add new users, but recheck every minute if a user idented himself
  18. # -1: don't add new users and don't recheck every minute. If someone idents
  19. # him/herself, he/she must cycle the chan to be recognized. (lowest CPU usage)
  20. set autoadd 5
  21. # delete users that have been added by the module if they haven't been seen
  22. # for more than x days
  23. set expire-users 30
  24. # log wordstats (most used words) (this stats are resetted daily)
  25. # NOTE: This is very cpu- and memory consuming, so don't
  26. # turn this on if you're worried about memory or cpu usage
  27. set log-wordstats 0
  28. # minimum length of a word to be logged
  29. # (0 is best to get exact results)
  30. set min-word-length 0
  31. # display how many random URLs in the misc stats?
  32. # (setting this to 0 also disables the logging of URLs
  33. # and can therefore lower your cpu-usage)
  34. set display-urls 5
  35. # display how many random kicks in the misc stats?
  36. set display-kicks 5
  37. # when logging kicks, also save the last x lines of activity in the chan
  38. set kick-context 5
  39. # log every Xth quote
  40. # If this value is lower, then the random quotes will be more random,
  41. # but the memory usage will also increase.
  42. set quote-frequency 5
  43. ######
  44. #####
  45. ### languages
  46. #####
  47. ######
  48. # reset old slangs before we load the new ones...
  49. resetslang
  50. # load the default language
  51. loadslang language/stats.lang
  52. ## load additional languages
  53. # loadslang ger language/stats.ger.lang
  54. #
  55. ## assign a language to a channel
  56. # setchanslang #xwp ger
  57. ######
  58. #####
  59. ### public commands
  60. #####
  61. ######
  62. # the char that marks public commands (!top10, etc...)
  63. # "" is a valid option
  64. set cmdchar "!"
  65. # don't answer more than x commands in y seconds
  66. set max-stat-cmds 5:60
  67. # information that the !stat reply will contain
  68. set stat-reply "words letters smileys minutes"
  69. ######
  70. #####
  71. ### HTML settings
  72. #####
  73. ######
  74. # list the top x users
  75. set topnr 30
  76. # NOTE:
  77. # table-color and fade-table-color are hex numbers which represent a rgb color.
  78. # If you do not know how to use this format, either use the default or ask
  79. # someone who knows it. (it's the HTML-standard-format)
  80. # the background color of your table
  81. set table-color 0x3850B8
  82. # fade table color to another color
  83. set fade-table-to 0x000000
  84. # border width of the table (0 == no border, which is probably the best)
  85. set table-border 0
  86. # The following two settings only affect the display of the stats. The bot will
  87. # still log and save everything, no matter if it's displayed or not.
  88. #
  89. # Please don't use "slangified" types! For example, use always "idle" instead of
  90. # "idle-factor" or whatever you defined in the langfiles.
  91. # which stats should be shown?
  92. set topstats "words lines wpl actions smileys kicks modes topics idle minutes"
  93. # and which stats should be mentioned in the graphical output?
  94. set graphstats "words lines actions smileys kicks modes topics minutes"
  95. # mention the top x users in the graphical stats.
  96. set graphnr 15
  97. # which colour should the bars have?
  98. set graphcolor "blue"
  99. # display the average number of users in the chan?
  100. set display-average-users 1
  101. # display the users which are currently on channel in /chan/onchan/ ?
  102. set show-usersonchan 1
  103. # display a list of all users in /chan/users/ ?
  104. set show-userlist 1
  105. # display channels, which are +secret on the livestats index?
  106. set list-secret-chans 1
  107. # You can use a backgound to fill the bars to get a nice 3d look, for example.
  108. # WARNING: entering a non-existant filename might mess the output up in some
  109. # browsers
  110. # WARNING2: use a full URL if you're using livestats.
  111. # (this is now disabled by default, because 50% of the users made it wrong <g>)
  112. #set graphgif "http://your.shell.com/~you/bar.gif"
  113. ##
  114. ## Livestat settings
  115. ##
  116. # listen on which port for livestat connection?
  117. # (to disable, either comment this out or use "off" or 0 as value)
  118. # (if you use the default, you can access the stats at
  119. # http://your.shell.com:8033/ )
  120. livestats 8033
  121. # By default, livestats listens on every available vhost for incoming
  122. # connection. If you want to limit livestats to one vhost, then enter
  123. # its IP(_not_ the host) below
  124. #set livestats-ip ""
  125. # log access to livestats to a logfile? (set to "" to turn off)
  126. set livestats-log "livestats.log"
  127. # the log-level where you can monitor access to livestats on your console
  128. # (use .console +1 to activate it)
  129. set livestats-loglevel "1"
  130. # don't serve more than x livestats pages in y seconds (to prevent flooding)
  131. set max-livestats-access 5:10
  132. ####
  133. ## only for the frequently updated webfiles
  134. ##
  135. ## this feature is outdated, don't use it unless you really need it
  136. ###
  137. # update webfiles every x minutes
  138. # (set this to 0 to disable)
  139. # (this is now disabled by default, use livestats instead!)
  140. set webupdate 0
  141. # directory where the files will be written to
  142. # don't use your standard webdir here, since index.html will be
  143. # overwritten and a lot of subdirs will be created
  144. set webdir "../public_html/stats"
  145. ######
  146. #####
  147. ### other (rather unimportant) settings
  148. #####
  149. ######
  150. ## stats.mod saves new users in an internal database by default
  151. ## for compatibility reasons, the old way of using the eggdrop
  152. ## user file is still available, but I strongly recommend to let
  153. ## it turned off!
  154. #set use-eggdrop-userfile 0
  155. #
  156. ## don't add new hosts to users with the following flags
  157. ## (only works for users in the eggdrop-userfile, use
  158. ## .schattr <user> -addhosts for users in the stats-userbase)
  159. #set anti-autoadd-flags "ofvb|ofv"
  160. #
  161. ## exclude users with the following flags from the top10, top20...
  162. ## (also only for eggdrop-userfile. Use .schattr <user> -list.
  163. #set anti-stats-flag "b|-"
  164. ##
  165. ## Please note that the last two settings don't affect the internal
  166. ## user database of stats.mod at all! They only work if
  167. ## use-eggdrop-userfile is set to 1
  168. ## (maybe I'll change this for the next version)
  169. # defines what will be counted as a smiley
  170. # (don't add hundreds of smileys if you want a reasonable cpu usage)
  171. set smileys ":-) :) ;) ;-) ^_^ :-D :-P :P =) ;D"
  172. ###############################################################################
  173. # end of config
  174. # just ignore everything below ^_^
  175. ###############################################################################
  176. catch "unbind pub - !top10 *pub:!top10"
  177. catch "unbind pub - !ttop10 *pub:!ttop10"
  178. catch "unbind pub - !top20 *pub:!top20"
  179. catch "unbind pub - !ttop20 *pub:!ttop20"
  180. catch "unbind pub - !stat *pub:!stat"
  181. catch "unbind pub - !tstat *pub:!tstat"
  182. catch "unbind pub - !place *pub:!place"
  183. catch "unbind pub - !tplace *pub:!tplace"
  184. catch "unbind pub - !wordstats *pub:!wordstats"
  185. catch "unbind pub - !topwords *pub:!topwords"
  186. bind pub - ${cmdchar}top10 *pub:!top10
  187. bind pub - ${cmdchar}ttop10 *pub:!ttop10
  188. bind pub - ${cmdchar}top20 *pub:!top20
  189. bind pub - ${cmdchar}ttop20 *pub:!ttop20
  190. bind pub - ${cmdchar}place *pub:!place
  191. bind pub - ${cmdchar}tplace *pub:!tplace
  192. bind pub - ${cmdchar}stat *pub:!stat
  193. bind pub - ${cmdchar}tstat *pub:!tstat
  194. bind pub - ${cmdchar}wordstats *pub:!wordstats
  195. bind pub - ${cmdchar}topwords *pub:!topwords