/
config.lua
executable file
·194 lines (194 loc) · 4.65 KB
/
config.lua
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
return {
Token = "token do bot",
allowed_updates = {"message", "edited_message", "callback_query"},
human_readable_version = '2.4',
source_code = 'https://github.com/matheusbach/PDUrobot',
grupo_bot = 'https://t.me/joinchat/?',
canal_bot = 'https://t.me/?',
nome_bot = 'PDUrobot',
channel = '@canaldobananal',
lang = 'pt_BR',
cmd = '^[/!#]',
db = 0,
-- END of CUSTOM APIs
superadmins = {366723664}, -- COLOQUE SEU ID
log = {
chat = 366723664, -- COLOQUE O ID DE UM GRUPO OU O SEU
admin = 366723664,-- CLOQUE UM ID DE USUARIO
stats = nil
},
bot_settings = {
cache_time = {
adminlist = 1800, -- Admin Cache time, in seconds.
alert_help = 72, -- amount of hours for cache help alerts
chat_titles = 1800
},
report = {
duration = 1200,
times_allowed = 2
},
notify_bug = false, --Notify if a bug occurs!
log_api_errors = true, --Log errors, which happening whilst interacting with the bot api.
stream_commands = true,
admin_mode = false,
debug_connections = false,
realm_max_members = 600,
realm_max_subgroups = 60
},
plugins = {
'onmessage', --THIS MUST BE THE FIRST: IF AN USER IS FLOODING/IS BLOCKED, THE BOT WON'T GO THROUGH PLUGINS
'antispam', --SAME OF onmessage.lua
'antispam-comandos',
--'realms', --must stay here
'backup',
'banhammer',
'block',
'configure',
'dashboard',
'floodmanager',
'help',
'links',
'logchannel',
'mediasettings',
'menu',
'moderators',
'pin',
'private',
'private_settings',
'report',
'rules',
'service',
'setlang',
'users',
'warn',
'welcome',
'admin',
'votekick',
'qr',
'pixabay',
'comandos-adicionais',
'mensagens-agendadas',
'ip',
'btc',
'ajudar',
'canaldobananal',
'fiodoalmo',
'incinerador',
'extra', --must be the last plugin in the list
},
multipurpose_plugins = {},
available_languages = {
['pt_BR'] = 'Português 🇧🇷',
},
allow_fuzzy_translations = false,
chat_settings = {
['settings'] = {
['Welcome'] = 'off',
['Goodbye'] = 'off',
['Extra'] = 'on',
['Flood'] = 'off',
['Silent'] = 'off',
['Rules'] = 'on',
['Reports'] = 'on',
['Welbut'] = 'off', -- "read the rules" button under the welcome message
['User votekick'] = 'on',
['Weldelchain'] = 'on', -- delete the previously sent welcome message when a new welcome message is sent
['Antibot'] = 'off'
},
['antispam'] = {
['links'] = 'alwd',
['linkswp'] = 'alwd',
['forwards'] = 'alwd',
['antipo'] = 'alwd', -- anti palavrões
['antico'] = 'alwd', -- anti comandos
['anticsujos'] = 'alwd', -- anti conteúdo sujo
['antiuser'] = 'alwd', -- anti usernames
['warns'] = 5,
['action'] = 'kick'
},
['flood'] = {
['MaxFlood'] = 5,
['ActionFlood'] = 'kick'
},
['char'] = {
['Arab'] = 'allowed', --'kick'/'ban'
['Rtl'] = 'allowed'
},
['floodexceptions'] = {
['text'] = 'no',
['photo'] = 'no', -- image
['forward'] = 'no',
['video'] = 'no',
['sticker'] = 'no',
['gif'] = 'no',
},
['warnsettings'] = {
['type'] = 'ban',
['mediatype'] = 'ban',
['max'] = 3,
['mediamax'] = 2
},
['welcome'] = {
['type'] = 'no',
['content'] = 'no'
},
['goodbye'] = {
['type'] = 'custom',
},
['votekick'] = {
['quorum'] = 10,
['duration'] = 900, -- 15 minutos
},
['media'] = {
['photo'] = 'ok', --'notok' | image
['audio'] = 'ok',
['video'] = 'ok',
['sticker'] = 'ok',
['gif'] = 'ok',
['voice'] = 'ok',
['contact'] = 'ok',
['document'] = 'ok', -- file
['link'] = 'ok',
['game'] = 'ok',
['location'] = 'ok'
},
['tolog'] = {
['ban'] = 'yes',
['kick'] = 'yes',
['unban'] = 'yes',
['tempban'] = 'yes',
['report'] = 'yes',
['warn'] = 'yes',
['yeswarn'] = 'yes',
['mediawarn'] = 'yes',
['spamwarn'] = 'yes',
['flood'] = 'yes',
['promote'] = 'yes',
['demote'] = 'yes',
['new_chat_member'] = 'yes',
['new_chat_photo'] = 'yes',
['delete_chat_photo'] = 'yes',
['new_chat_title'] = 'yes',
['pinned_message'] = 'yes',
['blockban'] = 'yes',
['block'] = 'yes',
['unblock'] = 'yes'
},
['modsettings'] = {
['promdem'] = 'yes', --'yes': admins can promote or demote moderators; 'no': only the owner can
['hammer'] = 'yes',
['config'] = 'no',
['texts'] = 'no'
}
},
private_settings = {
rules_on_join = 'off',
reports = 'off'
},
chat_hashes = {'extra', 'info', 'links', 'warns', 'mediawarn', 'spamwarns', 'blocked', 'report'},
chat_sets = {'whitelist', 'mods'},
bot_keys = {
d3 = {'bot:general', 'bot:usernames', 'bot:chat:latsmsg'},
d2 = {'bot:groupsid', 'bot:groupsid:removed', 'tempbanned', 'bot:blocked', 'remolden_chats'} --remolden_chats: chat removed with $remold command
}
}