-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
79 lines (65 loc) · 1.89 KB
/
config.js
File metadata and controls
79 lines (65 loc) · 1.89 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
'use strict';
/*
* Create `config.js` by running `cp example.config.js config.js`
* in the project folder, then edit it.
*
* Config file in JSON format (`config.json`) is also supported.
* For backwards compatibility, and because why not, it needs no extra code.
*/
module.exports = {
/**
* @type {!( number | string )}
* ID (number) or username (string) of master,
* the person who can promote and demote admins,
* and add the bot to groups.
*/
master: 197005208,
/**
* @type {!string}
* Telegram Bot token obtained from https://t.me/BotFather.
*/
token: '578718366:AAFdGf18-i82PibeYT7FP34EYj4x3GxbBI0',
/**
* @type {( 'all' | 'own' | 'none' )}
* Which messages with commands should be deleted?
* Defaults to 'own' -- don't delete commands meant for other bots.
*/
deleteCommands: 'own', // eslint-disable-line sort-keys
/**
* @type {( number | string | false )}
* Timeout before removing join and leave messages.
* String to be parsed by https://npmjs.com/millisecond,
* or number of milliseconds.
* Pass 0 to remove immediately.
* Pass false to never remove.
*/
deleteJoinsAfter: '2 minutes',
/**
* @type {( string[] | false )}
* List of whitelisted links and usernames,
* For channels and groups to stop warning users for them.
* Pass false to disable this feature
*/
excludeLinks: [],
/**
* @type {InlineKeyboardMarkup}
* Inline keyboard to be added to reply to /groups.
* We use it to display button opening our webpage.
*/
groupsInlineKeyboard: [],
notifyBrokenLink: false,
numberOfWarnsToBan: 3,
/**
* @type {string[]}
* List of plugin names to be loaded.
* See Readme in plugins directory for more details.
*/
plugins: [],
/**
* @type {InlineKeyboardMarkup}
* Inline keyboard to be added to warn message.
* We use it to display button showing our rules.
*/
warnInlineKeyboard: [],
};
Object.freeze(module.exports);