forked from out386/aria-telegram-mirror-bot
/
.constants.js.example
17 lines (17 loc) · 1008 Bytes
/
.constants.js.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = Object.freeze({
TOKEN: 'bot_token',
ARIA_SECRET: 'aria2_secret',
ARIA_DOWNLOAD_LOCATION: '/home/user/path/to/download/dir (no trailing "/")',
ARIA_DOWNLOAD_LOCATION_ROOT: '/', //The mountpoint that contains ARIA_DOWNLOAD_LOCATION
ARIA_FILTERED_DOMAINS: ['yts', 'YTS', 'cruzing.xyz', 'eztv.ag', 'YIFY'], // Prevent downloading from URLs containing these substrings
ARIA_FILTERED_FILENAMES: ['YIFY'], // Files/top level directories with these substrings in the filename won't be downloaded
GDRIVE_PARENT_DIR_ID: 'id_of_Drive_folder_to_upload_into',
SUDO_USERS: [012, 345], // Telegram user IDs. These users can use the bot in any chat.
AUTHORIZED_CHATS: [678, 901], // Telegram chat IDs. Anyone in these chats can use the bot.
DOWNLOAD_NOTIFY_TARGET: { // Information about the web service to notify on download completion.
enabled: false, // Set this to true to use the notify functionality
host: 'hostname.domain',
port: 80,
path: '/botNotify'
}
});