-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
50 lines (46 loc) · 2.27 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
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 || "Enter-MongoURI-HERE"
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' //wa.me/+91000000000000
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',
sessionName: process.env.SESSION_ID || 'PUT-HERE',
author: process.env.PACK_INFO.split(";")[0] || 'author',
auto_read_status : process.env.AUTO_READ_STATUS || 'false',
packname: process.env.PACK_INFO.split(";")[1] || 'Name',
autoreaction: process.env.AUTO_REACTION || 'off',
antibadword : process.env.ANTI_BAD_WORD || 'nobadwordokey',
alwaysonline: process.env.ALWAYS_ONLINE || 'false',
antifake : process.env.FAKE_COUNTRY_CODE || '',
readmessage: process.env.READ_MESSAGE || false,
HANDLERS: process.env.PREFIX || ['.'],
warncount : process.env.WARN_COUNT || 3,
disablepm: process.env.DISABLE_PM || "flase",
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 || '',
OPENAI_API_KEY: process.env.OPENAI_API_KEY || 'OPENAI_KEY',
VERSION: process.env.VERSION === undefined ? 'v.0.0.3' : process.env.VERSION,
LANG: process.env.THEME|| 'SECKTOR',
WORKTYPE: process.env.WORKTYPE === undefined ? 'public' : process.env.WORKTYPE
};
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(`Update'${__filename}'`)
delete require.cache[file]
require(file)
})