-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
config.js
63 lines (60 loc) · 2.62 KB
/
config.js
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
const fs = require('fs-extra');
if (fs.existsSync('config.env'))
require('dotenv').config({ path: __dirname + '/config.env' });
//═══════[Required Variables]════════\\
global.owner = process.env.OWNER_NUMBER?.split(',');
global.mongodb =
process.env.MONGODB_URI ||
'mongodb+srv://Xcelsama:[email protected]/?retryWrites=true&w=majority&appName=Xcelsama';
global.port = process.env.PORT || 5000;
global.email = '[email protected]';
global.github = 'https://github.com/SamPandey001/Secktor-Md';
global.location = 'Sultanpur IN';
global.gurl = 'https://instagram.com/'; // add your username
global.sudo = process.env.SUDO || '919628516236';
global.devs = '919628516236';
global.website = 'https://github.com/SamPandey001/Secktor-Md';
global.THUMB_IMAGE =
process.env.THUMB_IMAGE ||
'https://raw.githubusercontent.com/SecktorBot/Brandimages/main/logos/SocialLogo%201.png';
module.exports = {
botname: process.env.BOT_NAME || '𝐒𝐞𝐜𝐤𝐭𝐨𝐫 𝐁𝐨𝐭𝐭𝐨',
ownername: process.env.OWNER_NAME || 'SamPandey001',
OWNER_NUMBER: process.env.OWNER_NUMBER || '',
sessionName: process.env.SESSION_ID || '',
author: (process.env.PACK_INFO?.split(';') || [])[0] || 'SamPandey001',
auto_read_status: process.env.AUTO_READ_STATUS || false,
packname: (process.env.PACK_INFO?.split(';') || [])[1] || 'Secktor-Md',
autoreaction: process.env.AUTO_REACTION || false,
antibadword: process.env.ANTI_BAD_WORD || 'nobadwordsuntilyouputabadwordherelol',
alwaysonline: process.env.ALWAYS_ONLINE || false,
antifake: process.env.FAKE_COUNTRY_CODE || '1000',
readmessage: process.env.READ_MESSAGE || false,
auto_status_saver: process.env.AUTO_STATUS_SAVER || false,
HANDLERS: process.env.PREFIX || ['.'],
warncount: process.env.WARN_COUNT || 3,
disablepm: process.env.DISABLE_PM || false,
levelupmessage: process.env.LEVEL_UP_MESSAGE || false,
antilink: process.env.ANTILINK_VALUES || 'chat.whatsapp.com',
antilinkaction: process.env.ANTILINK_ACTION || 'remove',
BRANCH: 'main',
ALIVE_MESSAGE: process.env.ALIVE_MESSAGE || '',
autobio: process.env.AUTO_BIO || false,
OPENAI_API_KEY: process.env.OPENAI_API_KEY || false,
heroku: process.env.HEROKU || false,
HEROKU: {
HEROKU: process.env.HEROKU || false,
API_KEY: process.env.HEROKU_API_KEY || '',
APP_NAME: process.env.HEROKU_APP_NAME || '',
},
VERSION: process.env.VERSION || 'v.0.0.8',
LANG: process.env.THEME || 'SECKTOR',
WORKTYPE: process.env.WORKTYPE || 'public',
};
let file = require.resolve(__filename);
fs.watchFile(file, () => {
fs.unwatchFile(file);
console.log(`Update '${__filename}'`);
delete require.cache[file];
require(file);
});