4
0

stats.conf 7.6 KB

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