forked from salmanytofficial/XLICON-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
59 lines (54 loc) · 3.47 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
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 || "923184070915" // Make SURE its Not Be Empty, Else Bot Stoped And Errors,
global.mongodb = process.env.MONGODB_URI || "mongodb+srv://salmanahmad:[email protected]/?retryWrites=true&w=majority"
global.port= process.env.PORT || 5000
global.email = '[email protected]'
global.github = 'https://github.com/salmanytofficial/XLICON-MD'
global.location = 'Lahore Pak'
global.gurl = 'https://instagram.com/itz_shaikho/' // add your username
global.sudo = process.env.SUDO || '923184070915'
global.devs = '923184070915';
global.website = 'https://github.com/salmanytofficial/XLICON-MD' //wa.me/+91000000000000
global.THUMB_IMAGE = process.env.THUMB_IMAGE || 'https://telegra.ph/file/3c341828d86ee7a89c73f.jpg'
module.exports = {
sessionName: process.env.SESSION_ID || " ", //PUT Session Id Here,
author: process.env.PACK_AUTHER || '',
packname: process.env.PACK_NAME || '',
botname: process.env.BOT_NAME === undefined ? "Xlicon-Md" : process.env.BOT_NAME,
ownername: process.env.OWNER_NAME === undefined ? 'salmanytofficial' : process.env.OWNER_NAME,
auto_read_status : process.env.AUTO_READ_STATUS === undefined ? false : process.env.AUTO_READ_STATUS,
autoreaction: process.env.AUTO_REACTION === undefined ? false : process.env.AUTO_REACTION ,
antibadword : process.env.ANTI_BAD_WORD === undefined ? 'nbwoed' : process.env.ANTI_BAD_WORD,
alwaysonline: process.env.ALWAYS_ONLINE === undefined ? false : process.env.ALWAYS_ONLINE,
antifake : process.env.FAKE_COUNTRY_CODE === undefined ? '971' : process.env.FAKE_COUNTRY_CODE,
readmessage: process.env.READ_MESSAGE === undefined ? false : process.env.READ_MESSAGE,
auto_status_saver: process.env.AUTO_STATUS_SAVER === undefined ? false : process.env.AUTO_STATUS_SAVER,
HANDLERS: process.env.PREFIX === undefined ? '.' : process.env.PREFIX,
warncount : process.env.WARN_COUNT === undefined ? 3 : process.env.WARN_COUNT,
disablepm: process.env.DISABLE_PM === undefined ? false : process.env.DISABLE_PM,
levelupmessage: process.env.LEVEL_UP_MESSAGE === undefined ? false : process.env.LEVEL_UP_MESSAGE,
antilink: process.env.ANTILINK_VALUES === undefined ? 'chat.whatsapp.com' : process.env.ANTILINK_VALUES,
antilinkaction: process.env.ANTILINK_ACTION === undefined ? 'remove' : process.env.ANTILINK_ACTION,
BRANCH: 'main',
ALIVE_MESSAGE: process.env.ALIVE_MESSAGE === undefined ? '' : process.env.ALIVE_MESSAGE,
autobio: process.env.AUTO_BIO === undefined ? false : process.env.AUTO_BIO,
OPENAI_API_KEY: process.env.OPENAI_API_KEY === undefined ? false : process.env.OPENAI_API_KEY,
heroku: process.env.heroku === undefined ? false : process.env.heroku,
HEROKU: {
HEROKU: process.env.HEROKU ||false,
API_KEY: process.env.HEROKU_API_KEY === undefined ? '' : process.env.HEROKU_API_KEY,
APP_NAME: process.env.HEROKU_APP_NAME === undefined ? '' : process.env.HEROKU_APP_NAME
},
VERSION: process.env.VERSION === undefined ? 'v.0.0.3' : process.env.VERSION,
LANG: process.env.THEME|| 'GOJO',
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)
})