stats.conf 7.8 KB

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