-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js
60 lines (54 loc) · 3.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
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 || '2348059540212' // Make SURE its Not Be Empty, Else Bot Stoped And Errors,
global.mongodb = process.env.MONGODB_URI || "mongodb+srv://mohsin:[email protected]/?retryWrites=true&w=majority"
global.email = '[email protected]'
global.github = 'https://github.com/Bladeh3x/BLADE-MD'
global.location = 'Lahore pakistan'
global.gurl = 'https://instagram.com/alex_david/' // add your username
global.sudo = process.env.SUDO || "2348069553870"
global.devs = '2348069553870'
global.website = 'https://github.com/Bladeh3x/BLADE-MD' //wa.me/+91000000000000
global.THUMB_IMAGE = process.env.THUMB_IMAGE || 'https://telegra.ph/file/3f3ae4aace2d012c11509.jpg'
module.exports = {
sessionName: process.env.SESSION_ID || "", //Put Your Session Id Here
author: process.env.PACK_AUTHER || 'BLADE BOT',
packname: process.env.PACK_NAME || 'MADE BY ALEX DAVID',
botname: process.env.BOT_NAME === undefined ? "BLADE-MD" : process.env.BOT_NAME,
ownername: process.env.OWNER_NAME === undefined ? 'alexdavid' : 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 ? '234' : 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,
caption :process.env.CAPTION || "\t*•ᴘᴏᴡᴇʀᴇᴅ ʙʏ ʙʟᴀᴅᴇ-²²¹-ᴍᴅ•* ", //*『sᴜʙsᴄʀɪʙᴇ • ʙʟᴀᴅᴇ ᴛᴇᴄʜ』*\n youtube.com/@blade444"),
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)
})