Advertisement
Guest User

stats.conf

a guest
Jun 25th, 2010
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. ######
  2. #####
  3. ### General Settings
  4. #####
  5. ######
  6.  
  7. # the file where the data is stored
  8. # WARNING: Always set this var _before_ the module is loaded, or it won't
  9. # find your stats.
  10. set statsfile "statsmod.dat"
  11.  
  12. # load the module itself
  13. loadmodule stats
  14.  
  15. # save data every x minutes
  16. set save-stats 15
  17.  
  18. # add new users to the database if they stay more than x minutes
  19. # in the channel
  20. # >0: enabled
  21. # 0: don't add new users, but recheck every minute if a user idented himself
  22. # -1: don't add new users and don't recheck every minute. If someone idents
  23. # him/herself, he/she must cycle the chan to be recognized. (lowest CPU usage)
  24. set autoadd 5
  25.  
  26. # minimum number of lines that a user must have spoken before he/she gets
  27. # autoadded (you don't want "dead" users in your database, do you?)
  28. set autoadd-min-lines 5
  29.  
  30. set expire-base 7
  31.  
  32. set expire-factor 25
  33.  
  34. # delete users that have been added by the module if they haven't been seen
  35. # for more than x days
  36. #set expire-users 30
  37.  
  38. # if the user has a password set, delay the expiration for another x days
  39. #set expire-delay 30
  40.  
  41. # log wordstats (most used words) (this stats are resetted daily)
  42. # NOTE: This is very cpu- and memory consuming, so don't
  43. # turn this on if you're worried about memory or cpu usage
  44. set log-wordstats 1
  45.  
  46. # minimum length of a word to be logged
  47. # (0 is best to get exact results)
  48. set min-word-length 0
  49.  
  50. # display how many random URLs in the misc stats?
  51. # (setting this to 0 also disables the logging of URLs
  52. # and can therefore lower your cpu-usage)
  53. set display-urls 5
  54.  
  55. # display how many random kicks in the misc stats?
  56. set display-kicks 5
  57.  
  58. # when logging kicks, also save the last x lines of activity in the chan
  59. set kick-context 5
  60.  
  61. # log every Xth quote
  62. # If this value is lower, then the random quotes will be more random,
  63. # but the memory usage will also increase.
  64. set quote-frequency 5
  65.  
  66. ######
  67. #####
  68. ### languages
  69. #####
  70. ######
  71.  
  72. # reset old slangs before we load the new ones...
  73. # resetslang
  74.  
  75. # load the default language
  76. loadstatslang "en" "English" language/stats.en.lang
  77.  
  78. ## load additional languages
  79. loadstatslang "de" "Deutsch" language/stats.de.lang
  80.  
  81. ## assign a language to a channel
  82. setchanslang #xwp "de"
  83.  
  84. ######
  85. #####
  86. ### public commands
  87. #####
  88. ######
  89.  
  90. # the char that marks public commands (!top10, etc...)
  91. # "" is a valid option
  92. set cmdchar "!"
  93.  
  94. # don't answer more than x commands in y seconds
  95. set max-stat-cmds 5:60
  96.  
  97. # information that the !stat reply will contain
  98. set stat-reply "words letters smileys minutes"
  99.  
  100. ######
  101. #####
  102. ### HTML settings
  103. #####
  104. ######
  105.  
  106. # list the top x users
  107. set topnr 30
  108.  
  109. # NOTE:
  110. # table-color and fade-table-color are hex numbers which represent a rgb color.
  111. # If you do not know how to use this format, either use the default or ask
  112. # someone who knows it. (it's the HTML-standard-format)
  113.  
  114. # the background color of your table
  115. set table-color 0x3850B8
  116.  
  117. # fade table color to another color
  118. set fade-table-to 0x000000
  119.  
  120. # border width of the table (0 == no border, which is probably the best)
  121. set table-border 0
  122.  
  123. # The following two settings only affect the display of the stats. The bot will
  124. # still log and save everything, no matter if it's displayed or not.
  125. #
  126. # Please don't use "slangified" types! For example, use always "idle" instead of
  127. # "idle-factor" or whatever you defined in the langfiles.
  128.  
  129. # which stats should be shown?
  130. set topstats "words lines wpl actions smileys kicks modes topics idle minutes"
  131.  
  132. # and which stats should be mentioned in the graphical output?
  133. set graphstats "words lines actions smileys kicks modes topics minutes"
  134.  
  135. # mention the top x users in the graphical stats.
  136. set graphnr 10
  137.  
  138. # which colour should the bars have?
  139. set graphcolor "blue"
  140.  
  141. # display the average number of users in the chan?
  142. set display-average-users 1
  143.  
  144. # display the users which are currently on channel in /chan/onchan/ ?
  145. set show-usersonchan 1
  146.  
  147. # display a list of all users in /chan/users/ ?
  148. set show-userlist 1
  149.  
  150. # display channels, which are +secret on the livestats index?
  151. set list-secret-chans 1
  152.  
  153. # Since the stats.mod webserver can't serve binary data like images,
  154. # they must be stored on an external webserver. The following setting
  155. # defines the full URL to your webspace where you uploaded all needed
  156. # images to.
  157. # WARNING: You definitely should change this default setting and use your
  158. # own webspace. I will move images on my server whenever I feel like it, so
  159. # your stat-pages might get broken pretty fast.
  160. #
  161. # Eggdrop running oh the same host and ./irc contains
  162. # 0BAFF copy.bmp 00BAFF copy.tif 00BAFF.png 6500E1.png 6B54C0.gif
  163. # 6B54C0.jpg 6B54C0.png email.gif graph.gif homepage.gif
  164. # vertical_blue_bar.gif vertical_green_bar.gif
  165. # and
  166. # dev/arrow_up.gif dev/email_supersimple.gif
  167. # dev/homepage_supersimple2.gif dev/homepage_supersimple3.gif
  168. # dev/homepage_supersimple4.gif dev/homepage_supersimple.gif
  169. set binary-url "http://80.190.98.198/irc/"
  170.  
  171. ##
  172. ## Livestat settings
  173. ##
  174.  
  175. # listen on which port for livestat connection?
  176. # (to disable, either comment this out or use "off" or 0 as value)
  177. # (if you use the default, you can access the stats at
  178. # http://your.shell.com:8033/ )
  179. #
  180. # http://80.190.98.198:8033 or http://localhost:8033
  181. # ``HTTP request sent; waiting for response.'' ..
  182. livestats 8033
  183.  
  184. # By default, livestats listens on every available vhost for incoming
  185. # connection. If you want to limit livestats to one vhost, then enter
  186. # its IP(_not_ the host) below
  187. #set livestats-ip ""
  188.  
  189. # log access to livestats to a logfile? (set to "" to turn off)
  190. set livestats-log "livestats.log"
  191.  
  192. # the log-level where you can monitor access to livestats on your console
  193. # (use .console +1 to activate it)
  194. set livestats-loglevel "1"
  195.  
  196. # don't serve more than x livestats pages in y seconds (to prevent flooding)
  197. set max-livestats-access 5:10
  198.  
  199. ####
  200. ## only for the frequently updated webfiles
  201. ##
  202. ## this feature is outdated, don't use it unless you really need it
  203. ###
  204.  
  205. # update webfiles every x minutes
  206. # (set this to 0 to disable)
  207. # (this is now disabled by default, use livestats instead!)
  208. set webupdate 0
  209.  
  210. # directory where the files will be written to
  211. # don't use your standard webdir here, since index.html will be
  212. # overwritten and a lot of subdirs will be created
  213. #--------------------------------------------------
  214. # set webdir "public_html/stats"
  215. #--------------------------------------------------
  216.  
  217. ######
  218. #####
  219. ### other (rather unimportant) settings
  220. #####
  221. ######
  222.  
  223. ## stats.mod saves new users in an internal database by default
  224. ## for compatibility reasons, the old way of using the eggdrop
  225. ## user file is still available, but I strongly recommend to let
  226. ## it turned off!
  227. #set use-eggdrop-userfile 0
  228. #
  229. ## don't add new hosts to users with the following flags
  230. ## (only works for users in the eggdrop-userfile, use
  231. ## .schattr <user> -addhosts for users in the stats-userbase)
  232. #set anti-autoadd-flags "ofvb|ofv"
  233. #
  234. ## exclude users with the following flags from the top10, top20...
  235. ## (also only for eggdrop-userfile. Use .schattr <user> -list.
  236. #set anti-stats-flag "b|-"
  237. ##
  238. ## Please note that the last two settings don't affect the internal
  239. ## user database of stats.mod at all! They only work if
  240. ## use-eggdrop-userfile is set to 1
  241. ## (maybe I'll change this for the next version)
  242.  
  243. # defines what will be counted as a smiley
  244. # (don't add hundreds of smileys if you want a reasonable cpu usage)
  245. set smileys ":-) :) ;) ;-) ^_^ :-D :-P :P =) ;D"
  246.  
  247. ###############################################################################
  248. # end of config
  249. # just ignore everything below ^_^
  250. ###############################################################################
  251.  
  252. catch "unbind pub - !top *pub:!top"
  253. catch "unbind pub - !last *pub:!last"
  254. catch "unbind pub - !stat *pub:!stat"
  255. catch "unbind pub - !place *pub:!place"
  256. catch "unbind pub - !wordstats *pub:!wordstats"
  257. catch "unbind pub - !topwords *pub:!topwords"
  258. bind pub - ${cmdchar}top *pub:!top
  259. bind pub - ${cmdchar}last *pub:!last
  260. bind pub - ${cmdchar}place *pub:!place
  261. bind pub - ${cmdchar}stat *pub:!stat
  262. bind pub - ${cmdchar}wordstats *pub:!wordstats
  263. bind pub - ${cmdchar}topwords *pub:!topwords
  264.  
  265.  
  266.  
  267. set stats-template-dir "./templates/stats"
  268. set stats-language-dir "./language"
  269.  
  270. loadstatsskin templates/stats/classic/classic.skin
  271. #loadstatsskin templates/stats/classic/debug.skin
  272.  
  273. set default-slang "eng"
  274. set default-skin "classic"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement