forked from Dark-Xploit/SPACE-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.js
More file actions
39 lines (28 loc) · 1.7 KB
/
settings.js
File metadata and controls
39 lines (28 loc) · 1.7 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
require('dotenv').config();
module.exports = {
//Enter your session id here (optional)
SESSION_ID: process.env.SESSION_ID || '',
//Enter your number here for administrative access to the bot
BOT_ADMIN: process.env.BOT_ADMIN || '254712345678',
//Bot web server port
PORT: parseInt(process.env.PORT) || 2605,
//Enter your Github username here (Compulsory unless you have a valid premium key)
GITHUB_USERNAME: process.env.GITHUB_USERNAME || '',
//Enter your desired bot password here. Users will be asked for this password when they try to connect to your bot via telegram or web
//Must be numbers only and a total of 8 digits
BOT_PASSWORD: parseInt(process.env.BOT_PASSWORD) || 12345678,
//Enter the desired password for accessing administrative access to the bot
//⚠️ Do not share with anyone as they can use it to control your bot
//Must be numbers only and a total of 8 digits
ADMIN_PASSWORD: parseInt(process.env.BOT_PASSWORD) || 11223344,
//Enter telegram bot token for interaction with this bot via telegram (optional)
TELEGRAM_BOT_TOKEN: process.env.TELEGRAM_BOT_TOKEN || '',
//Antidelete and Antiedit functionality, set true to enable and false to disable. (⚠️ This function consumes a lot of memory + storage, only enable if you have enough resources ⚠️)
ANTI_DELETE: process.env.ANTI_DELETE || 'false',
//⚠️ Premium users settings ⚠️
PREMIUM_KEY: process.env.PREMIUM_KEY || '',
MAX_SESSIONS: parseInt(process.env.MAX_SESSIONS) || 3,
EXPIRY: process.env.EXPIRY || ''
};
// You must set GITHUB_USERNAME to use the bot unless you are a premium user
// You must fork SPACE-MD repo in order to use the bot unless you're a premium user