forked from wrxck/mattata
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.example.lua
More file actions
309 lines (215 loc) · 8.33 KB
/
configuration.example.lua
File metadata and controls
309 lines (215 loc) · 8.33 KB
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
return { -- rename this file to configuration.lua for mattata to work
['bot_token'] = '', -- In order for your copy of mattata to actually work, you MUST insert the Telegram bot API token you received from @BotFather.
['admins'] = { -- Here you need to specify the numerical ID of the users who shall have FULL control over mattata, this includes access to server files via the lua and shell plugins.
221714512
},
['info'] = {
['name'] = 'mattata',
['first_name'] = 'mattata',
['last_name'] = nil,
['username'] = 'mattatabot',
['id'] = 268302625
},
['language'] = 'en', -- two character locale, this is the default language for all users who haven't adjusted their language
['log_chat'] = nil, -- This needs to be the numerical identifier of the chat you wish to log errors into. If it's not a private chat it should begin with a '-' symbol.
['log_admin_actions'] = true,
['log_channel'] = nil,
['bug_reports_chat'] = nil,
['command_prefix'] = '/', -- the symbol bot commands will be executed with ('/' by default)
['download_location'] = '/tmp/', -- the location to save all downloaded media to
['respond_to_memes'] = true, -- This setting determines whether your copy of mattata will respond to certain memes. It MUST be a boolean value.
['max_copypasta_length'] = 300, -- the maximum number of characters a message can have to be able to have /copypasta used on it
['debug'] = true,
['plugins'] = { -- This table lists the plugins which your copy of mattata will load upon each instance.
'control',
-- To allow things to work properly, you MUST place all new plugins BELOW this line. It is recommended to keep the list clean by ensuring it keeps its alphabetical order.
'adduser',
'administration',
'apod',
'appstore',
'author',
'base64',
'bash',
'binary',
'bing',
'bugreport',
'calc',
'canitrust',
'catfact',
'cats',
'channel',
'chuck',
'coinflip',
'copypasta',
'currency',
'dice',
'dictionary',
'dns',
'doge',
'doggo',
'echo',
'eightball',
'emoji',
'exec',
'facebook',
'faces',
'fact',
'flickr',
'fortune',
'game',
'gblacklist',
'gif',
'github',
'githubfeed',
'gsearch',
'gwhitelist',
'hackernews',
'hexadecimal',
'hextorgb',
'id',
'identicon',
'imdb',
'instagram',
'insult',
'isp',
'ispwned',
'isup',
'itunes',
'jsondump',
'lastfm',
'lmgtfy',
'location',
'loremipsum',
'lua',
'lyrics',
'minecraft',
'msglink',
'netflix',
'ninegag',
'paste',
'pay',
'ping',
'plugins',
'pokedex',
'prime',
'pun',
'qr',
'randomword',
'reddit',
'rss',
'sed',
'setlang',
'setloc',
'shorten',
'shout',
'slap',
'spotify',
'statistics',
'synonym',
'time',
'translate',
'twitch',
'unicode',
'upload',
'urbandictionary',
'uuid',
'weather',
'whois',
'wikipedia',
'xkcd',
'yify',
'yomama',
'youtube',
'help'
},
['redis'] = { -- Configurable options for connecting your copy of mattata to redis. Do NOT modify these settings if you don't know what you're doing!
['host'] = '127.0.0.1',
['port'] = 6379,
['password'] = nil,
['db'] = 2
},
['keys'] = { -- API keys needed for the full functionality of several plugins
['cats'] = '', -- http://thecatapi.com/api-key-registration.html
['translate'] = '', -- https://tech.yandex.com/keys/get/?service=trnsl
['lyrics'] = '', -- https://developer.musixmatch.com/admin/applications
['canitrust'] = '', -- https://www.mywot.com/en/signup
['apod'] = '', -- https://api.nasa.gov/index.html#apply-for-an-api-key
['synonym'] = '', -- https://tech.yandex.com/keys/get/?service=dict
['lastfm'] = '', -- http://www.last.fm/api/account/create
['weather'] = '', -- https://openweathermap.org/api
['google'] = '', -- https://console.developers.google.com/apis
['bing'] = '', -- https://datamarket.azure.com/account/keys
['flickr'] = '', -- https://www.flickr.com/services/apps/create/noncommercial/?
['githubfeed'] = '',
['twitch'] = '',
['pastebin'] = '',
['dictionary'] = {
['id'] = '',
['key'] = ''
},
['adfly'] = {
['apikey'] = '',
['userid'] = ''
},
['pasteee'] = '',
['gsearch'] = {
['api_key'] = '',
['cse_key'] = ''
}
},
['errors'] = { -- Messages to provide a more user-friendly approach to instances of errors
['generic'] = 'I\'m afraid an error has occured!',
['connection'] = 'I\'m sorry, but there was an error whilst I was processing your request, please try again later.',
['results'] = 'I\'m sorry, but I couldn\'t find any results for that.'
},
['dice'] = {
['max_range'] = 200,
['max_count'] = 200,
['min_range'] = 2
},
['eightball'] = {
'It is certain.',
'It has been confirmed.',
'Without any doubts.',
'Yes, definitely.',
'You may rely on it.',
'As I see it, yes.',
'Most likely.',
'Outlook: not so good.',
'Yes.',
'Signs point to yes.',
'The reply is very weak, try again.',
'Ask again later.',
'I can not tell you right now.',
'Cannot predict right now.',
'Concentrate, and then ask again.',
'Do not count on it.',
'My reply is no.',
'My sources say possibly.',
'Outlook: very good.',
'Very doubtful.',
'Rowan\'s voice echoes: There is a time and place for everything, but not now.'
},
['faces'] = { -- Expressive emoticon faces which can be triggered with /<name>
['shrug'] = '¯\\_(ツ)_/¯',
['lenny'] = '( ͡° ͜ʖ ͡°)',
['flip'] = '(╯°□°)╯︵ ┻━┻',
['look'] = 'ಠ_ಠ',
['shots'] = 'SHOTS FIRED',
['facepalm'] = '(-‸ლ)',
['vibrator'] = 'ヽヽ༼༼ຈຈل͜ل͜ຈຈ༽༽ノノ TURN OFF THE VIBRATOR ヽヽ༼༼ຈຈل͜ل͜ຈຈ༽༽ノノ',
['africa'] = '( ͡° ͜ʖ ͡°) Every 60 seconds in Africa, a minute passes. Together we can stop this. Please spread the word ( ͡° ͜ʖ ͡°)',
['chocolate'] = '\n╔╦╦\n╠╬╬╬╣\n╠╬╬╬╣OK! WHO ATE MY\n╠╬╬╬╣CHOCOLATE!!\n╚╩╩╩╝',
['kirby'] = '(つ -‘ _ ‘- )つ',
['finger'] = '\n /´¯/)\n ,/¯ /\n / /\n /´¯/’ ’/´¯¯`·¸\n /’/ / / /¨¯\\\n (‘( ´ ´ ¯~/’ ’)\n \\ ’ /\n \\ \\ _ ·´\n \\ (\n \\ \\,',
['rub'] = 'ヽ( ° ͜ʖ͡°)ノ ʀuʙ ᴍʏ ᴅᴏɴɢᴇʀ ヽ( ° ͜ʖ͡°)ノ',
['party'] = '୧༼ ͡◉ل͜ ͡◉༽୨ (ง ͠° ل͜ °)ง ヽ༼ຈل͜ຈ༽ノ ༼ ºل͟º ༽ Join da Party ୧༼ ͡◉ل͜ ͡◉༽୨ (ง ͠° ل͜ °)ง ヽ༼ຈل͜ຈ༽ノ ༼ ºل͟º ༽',
['lift'] = '\n❚█══█❚\nDo you even lift?',
['specs'] = 'ᒡ◯ᵔ◯ᒢ'
}
}
--[[
Well, it looks like you've reached the end of the configuration file, so you're good to go!
Make sure this file is called 'configuration.lua'; then you can run ./launch.sh and have fun!
:^)
]]--