forked from group-butler/GroupButler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.lua
186 lines (186 loc) · 4.47 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
return {
bot_api_key = os.getenv('BOT_TOKEN'),
cmd = '^[/!]',
allowed_updates = {"message", "edited_message", "callback_query"},
db = 2, --default redis db: 0
superadmins = {119416836},
log = {
chat = -1001086427803,
admin = -1001086427803,
},
human_readable_version = '4.2.0',
bot_settings = {
cache_time = {
adminlist = 18000, --5 hours (18000s) Admin Cache time, in seconds.
alert_help = 72, -- amount of hours for cache help alerts
chat_titles = 18000
},
report = {
duration = 1200,
times_allowed = 2
},
notify_bug = true, --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 = 60,
realm_max_subgroups = 6
},
channel = '@it_cat_encrypted', --channel username with the '@'
source_code = 'https://github.com/mymedia2/GroupButler',
help_groups_link = 'https://telegram.me/it_cat_encrypted',
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
--'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',
'voteban',
'extra', --must be the last plugin in the list.
},
multipurpose_plugins = {},
available_languages = {
['en'] = 'English 🇬🇧',
['it'] = 'Italiano 🇮🇹',
['es'] = 'Español 🇪🇸',
['pt_BR'] = 'Português 🇧🇷',
['ru'] = 'Русский 🇷🇺',
['de'] = 'Deutsch 🇩🇪',
--['sv'] = 'Svensk 🇸🇪',
['ar'] = 'العربية 🇸🇩',
--['fr'] = 'Français 🇫🇷',
['zh'] = '中文 🇨🇳',
['fa'] = 'فارسی 🇮🇷',
['id'] = 'Bahasa Indonesia 🇮🇩',
['nl'] = 'Dutch 🇱🇺'
-- more languages will come
},
allow_fuzzy_translations = false,
chat_settings = {
['settings'] = {
['Welcome'] = 'off',
['Goodbye'] = 'off',
['Extra'] = 'on',
--['Flood'] = 'off',
['Silent'] = 'off',
['Rules'] = 'off',
['Reports'] = 'off',
['voteban'] = 'off',
['Welbut'] = 'off',
['Antibot'] = 'off'
},
['antispam'] = {
['links'] = 'alwd',
['forwards'] = 'alwd',
['warns'] = 2,
['action'] = 'ban'
},
['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',
},
['voteban'] = {
['quorum'] = 5,
['duration'] = 1800, -- half an hour
},
['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'] = 'no',
['kick'] = 'no',
['unban'] = 'no',
['tempban'] = 'no',
['report'] = 'no',
['warn'] = 'no',
['nowarn'] = 'no',
['mediawarn'] = 'no',
['spamwarn'] = 'no',
['flood'] = 'no',
['promote'] = 'no',
['demote'] = 'no',
['cleanmods'] = 'no',
['new_chat_member'] = 'no',
['new_chat_photo'] = 'no',
['delete_chat_photo'] = 'no',
['new_chat_title'] = 'no',
['pinned_message'] = 'no',
['blockban'] = 'no',
['block'] = 'no',
['unblock'] = 'no'
},
['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
}
}