Skip to content

Instantly share code, notes, and snippets.

@NotAHacker121
Last active August 21, 2021 14:56
Show Gist options
  • Select an option

  • Save NotAHacker121/a6e9d10cb79f0bf4d73bf66294c7bb8a to your computer and use it in GitHub Desktop.

Select an option

Save NotAHacker121/a6e9d10cb79f0bf4d73bf66294c7bb8a to your computer and use it in GitHub Desktop.
module.exports = Object.freeze({
TOKEN: '1383292949:AAH4d2TPjmD5HgX-JPfb2OQn-2PsDsLHmZE',
ARIA_SECRET: 'myaria2',
ARIA_DOWNLOAD_LOCATION: '/home/username/mirror-bot/downloads',
ARIA_DOWNLOAD_LOCATION_ROOT: '/', //The mountpoint that contains ARIA_DOWNLOAD_LOCATION
ARIA_FILTERED_DOMAINS: [], // Prevent downloading from URLs containing these substrings
ARIA_FILTERED_FILENAMES: [], // Files/top level directories with these substrings in the filename won't be downloaded
ARIA_PORT: 8210, // Port for aria2c RPC server, if you change this here, make sure to update aria.sh as well
GDRIVE_PARENT_DIR_ID: '1FLdZvkZEwq9XQLxo95-ZYduNX404Omla',
OTHER_GDRIVE_DIR_IDS: [], // This is needed if u want to look for files in multiple dirs on list command
SUDO_USERS: [726934148], // Telegram user IDs. These users can use the bot in any chat.
AUTHORIZED_CHATS: [], // Telegram chat IDs. Anyone in these chats can use the bot.
STATUS_UPDATE_INTERVAL_MS: 12000, // A smaller number will update faster, but might cause rate limiting
DRIVE_FILE_PRIVATE: {
ENABLED: true,
EMAILS: []
},
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'
},
COMMANDS_USE_BOT_NAME: {
ENABLED: false, // If true, all commands except '/list' has to have the bot username after the command
NAME: "@nameOf_bot"
},
IS_TEAM_DRIVE: true,
USE_SERVICE_ACCOUNT: false,
INDEX_DOMAIN: "",
TELEGRAPH_TOKEN: '5403a90b2f5d653b705275256094c13a17702fcd84d172b2a98a6419dc3f' // Telegraph token, if you want to show search results in telegra.ph else keep it blank
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment