-
Notifications
You must be signed in to change notification settings - Fork 5
/
lalita.cfg.sample
234 lines (222 loc) · 7.52 KB
/
lalita.cfg.sample
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
# -*- coding: utf8 -*-
# Copyright 2009-2013 laliputienses
# License: GPL v3
# For further info, see LICENSE file
# Servers Configuration Settings
# the name of the server is the key of this dict, and the value
# for each key is the server configuration
servers = {
'localhost': dict (
# this is the character that will indicate that a command to lalita
# is issued
command_char = '@'
# the encoding used to connect to the server
encoding='utf8',
# host and port of the server
host='127.0.0.1', port=6667,
# the nick name we'll be using to connect
nickname='examplia',
# when there's a problem, a private will be opened to the
# ircmaster to show him the traceback
ircmaster='facundobatista',
# the lang to use in the translated plugin texts
lang='es',
# list and config of the channels, all server config can be
# overruled on each channel
channels= {
'#humites': dict (
plugins={
'lalita.plugins.url.Url': { },
},
# if True, when talking to the bot will be considered a command
indirect_command=True,
# if present, use this key for +k channels
key="sarasa",
),
'#perrites': dict (
lang='en',
plugins={
# two shelves are going to be created (iolog and saylog)
'lalita.plugins.seen.Seen': {'base_dir':'/tmp'},
}),
},
plugins= {
# 'url.Url': { },
'lalita.plugins.photo.Photo': { },
'lalita.plugins.misc.Ping': { },
'zmq_proxy.ZMQPlugin':{
'events_address':'tcp://127.0.0.1:9090',
'bot_address':'tcp://127.0.0.1:9091',
},
},
),
'example': dict (
encoding='utf8',
host='10.100.0.156', port=6667,
nickname='examplia',
channels= {
'#humites': dict(plugins={}),
},
plugins= {
'lalita.plugins.example.Example': { },
},
),
'private-server': dict (
encoding='utf8',
host='10.100.0.156', port=6667,
nickname='examplia',
ssl=True,
password='aprivateserver',
channels= {
'#humites': dict(plugins={}),
},
plugins= {
'lalita.plugins.example.Example': { },
},
),
'freenode': dict (
# To effectively get cloaking properties, delay the registration
# into the channels some amount of time. For more details, see:
# https://bugs.launchpad.net/lalita/+bug/1184667
deferred_registration=True,
encoding='utf8',
host='irc.freenode.net', port=6667,
nickname='lalita',
channels= {
'#not-grulic': dict (plugins={
#'url.Url': { },
#'seen.Seen': { },
}),
'#pyar': dict (plugins={
#'url.Url': { },
#'seen.Seen': { },
}),
},
plugins= {
'lalita.plugins.freenode.Register': { 'password': 'zaraza' },
'lalita.plugins.url.Url': { },
'lalita.plugins.seen.Seen': { },
'lalita.plugins.misc.Ping': { },
},
),
'example-freenode': dict (
encoding='utf8',
host='irc.freenode.net', port=6667,
nickname='lalita-example',
channels= {
'#lalita-example': dict (plugins={
'lalita.plugins.ejemplodoc.Sum': { },
}),
},
),
'perrito':{
'encoding': 'utf8',
'host' : "10.100.0.156",
'port' : 6667,
'nickname' : "morelia",
'channels':{
'#humites':{
'plugins':{
'lalita.plugins.url.Url': dict (
database= 'url_public',
),
'lalita.plugins.seen.Seen': {},
},
'encoding': 'utf8',
},
'#perrites':{
'encoding': 'utf8',
'plugins':{
'lalita.plugins.url.Url': dict (
database= 'url_perrites_private',
),
},
},
},
'plugins':{
'lalita.plugins.url.Url': dict (
database= 'url_public',
),
'lalita.plugins.seen.Seen': {},
}
},
'testbot-a':{
'encoding': 'utf8',
'host' : "10.100.0.175",
'port' : 6667,
'nickname' : "itchy",
'channels':{
'#humites':{
'plugins': {}
},
},
'plugins':{
'lalita.plugins.deathmatch.TestPlugin': {'other': 'scratchy'}
},
'plugins_dir': "./lalita/core/tests/plugins",
},
'testbot-b':{
'encoding': 'utf8',
'host' : "10.100.0.175",
'port' : 6667,
'nickname' : "scratchy",
'channels':{
'#humites':{
'plugins': {}
},
},
'plugins':{
'lalita.plugins.deathmatch.TestPlugin': {'other':'itchy'}
},
'plugins_dir': "./lalita/core/tests/plugins",
},
'perrito1':{
'encoding': 'utf8',
'host' : "10.100.0.194",
'port' : 6668,
'nickname' : "lolita",
'channels':{
'#humites':{
'plugins':{ 'lalita.plugins.Log':{} },
'encoding': 'utf8',
},
'#perrites':{
'plugins':{ 'lalita.plugins.Log':{} }
}
},
'plugins':{
'lalita.plugins.Log': {}
}
},
'pyar2':{
'encoding': 'utf8',
'host' : "irc.freenode.net",
'port' : 6667,
'nickname' : "apu",
'channels':{
'pyar':{
'plugins':{ 'lalita.plugins.Log':{} },
'encoding': 'utf8',
},
},
'plugins':{
'lalita.plugins.Log': {}
}
},
'javito':{
'encoding': 'utf8',
'host' : "10.100.0.156",
'port' : 6667,
'nickname' : "manyula",
'channels':{
'#humites':{
'plugins':{
'lalita.plugins.randomer.Randomer': dict (
database= 'url_public',
)
},
'encoding': 'utf8',
},
},
}
}