forked from QueenRoxi2/Queen-Roxi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
57 lines (53 loc) · 2.74 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
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/prabathLK/PRABATH-MD'
global.location = 'Sultanpur IN'
global.gurl = 'https://instagram.com/' // add your username
global.devs = '94762280384';
global.website = 'https://github.com/prabathLK/PRABATH-MD' //wa.me/+94762280384
global.THUMB_IMAGE = process.env.THUMB_IMAGE || 'https://i.imgur.com/H062oEI.jpeg'
module.exports = {
OPENAI_API_KEY:process.env.OPENAI_API_KEY || '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',
botname: process.env.BOT_NAME || 'PRABATH-MD',
dl_limit: process.env.DL_SIZE || '300',
art: process.env.AUTO_RESTART || 'true',
sudo: process.env.SUDO || '94762280384',
alivepic: process.env.ALIVE_IMG || 'https://telegra.ph/file/ad25b2227fa2a1a01b707.jpg',
alivemsj: process.env.ALIVE_MSJ || '*POWERD BY PRABATH-MD* 🎊',
ownername:process.env.OWNER_NAME || 'PRABATH',
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 || 'fuck,huth,fucking,huththa,huththo,hukanna,fucked,pakaya,pako,ponnaya,ponnayo,kariya,kariyo,huththaa,hutta',
alwaysonline: process.env.ALWAYS_ONLINE || 'true',
antifake : process.env.FAKE_COUNTRY_CODE || '',
readmessage: process.env.READ_MESSAGE || true,
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',
HEROKU_APP_NAME: process.env.HEROKU_APP_NAME || 'put your herokuapp name',
HEROKU_API_KEY: process.env.HEROKU_API_KEY || 'put your heroku_api_key',
BRANCH: 'main',
ALIVE_MESSAGE: process.env.ALIVE_MESSAGE || '',
OPENAI_API_KEY: process.env.OPENAI_API_KEY || 'put-key-here',
VERSION: process.env.VERSION === undefined ? 'v.5.0.0' : process.env.VERSION,
LANG: process.env.THEME|| 'PRABATH-MD',
WORKTYPE: process.env.WORK_TYPE === undefined ? 'public' : process.env.WORK_TYPE
};
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(`Update'${__filename}'`)
delete require.cache[file]
require(file)
})