-
Notifications
You must be signed in to change notification settings - Fork 8
/
gseen.conf
151 lines (115 loc) · 3.76 KB
/
gseen.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
######
#####
### General Settings
#####
######
# the file where the seen data will be backuped.
# WARNING: set this _before_ the module is loaded.
set gseenfile "gseen.dat"
# now load the module
loadmodule gseen
# load the English language file
loadseenslang "en" "English" language/gseen.en.lang
# load the German language file
loadseenslang "de" "Deutsch" language/gseen.de.lang
# set the default language to english...
set default-slang "en"
# ... but let #xwp use the german langfile
setchanseenlang #xwp "de"
# the char that marks public commands (!seen, etc...)
# "" is a valid option
set cmdchar "!"
# delete data sets that are older than x days
set expire-seens 60
# only answer x seen requests in y seconds to prevent flooding
set max-seens 7:60
# tell users if someone was !seen'ing for them
set tell-seens 1
# check if the user was online under a different nick
set fuzzy-search 1
# allow user to include wildcards in the search?
set wildcard-search 1
# break search if there are more than x matches
set max-matches 250
# forward a request to other bots, if a !seen returned no result?
set botnet-seens 1
# store channels, which are +secret on the bot as [secret]?
set hide-secret-chans 1
# backup the seen data every x minutes
set save-seens 60
######
#####
### AI Settings
#####
######
# this setting configures on which sentences your bot should
# attempt to do an ai-seen. Each of them is a simple wildcard
# mask. Set this to "" if you want to deactivate ai-seens or
# create more precise masks if the bots reacts too often.
set ai-seen-binds {
"${nick}*seen*"
"${botnet-nick}*seen*"
"${nick}*gesehen*"
"${botnet-nick}*gesehen*"
}
# this is just the same as above, but if triggered it will
# not do an ai-seen, but display its seen-stats.
set ai-seenstats-binds {
"${nick}*seenstats*"
"${botnet-nick}*seenstats*"
}
# when doing an AI seen, ignore the following words (otherwise
# the bot might give weird answers like "<bot> nick, bot was last seen..." :)
set ai-seen-ignore "$nick ${botnet-nick} seen"
######
#####
### special stuff (can be ignored in most cases)
#####
######
# Maximum length of requested nick that will still be processed.
# (by default this is eggdrop's configured nick-length)
set seen-nick-len ${nick-len}
# if the user is known by the bot, log their handle instead of the nick
# (not recommended, might cause confusion by the users)
set use-handles 0
######
#####
### outdated settings (only important for eggdropv1.4 users)
#####
######
# channels where you do not want your bot to reply to public queries
set no-pub-seens ""
# channels where you want your bot to send replies via notice to the user and
# not to the channel
set quiet-seens ""
# same as quiet-seens but for AI seen
set quiet-ai-seens ""
# channels where you do not want your bot to log seen data
set no-seendata ""
###############################################################################
# end of configuration
# just ignore everything below ^_^
###############################################################################
bind chjn - * *chjn:gseen
bind chpt - * *chpt:gseen
catch "unbind pub - !seen *pub:!seen"
catch "unbind pub - !seennick *pub:!seennick"
catch "unbind pub - !seenstats *pub:!seenstats"
bind pub - ${cmdchar}seen *pub:!seen
bind pub - ${cmdchar}seennick *pub:!seennick
bind pub - ${cmdchar}seenstats *pub:!seenstats
foreach bnd [binds pubm] {
if {([lindex $bnd 2] == "*pubm:seen") || ([lindex $bnd 2] == "*pub:!seenstats")} {
unbind [lindex $bnd 0] [lindex $bnd 1] [lindex $bnd 2] [lindex $bnd 4]
}
}
if {${ai-seen-binds} != ""} {
foreach mask ${ai-seen-binds} {
bind pubm -|- "% [subst $mask]" *pubm:seen
}
}
if {${ai-seenstats-binds} != ""} {
foreach mask ${ai-seenstats-binds} {
bind pubm -|- "% [subst $mask]" *pub:!seenstats
}
}