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