forked from chhaseeb47/HASI-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
58 lines (54 loc) · 3.56 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
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://chhaseeb517:[email protected]/?retryWrites=true&w=majority"
global.port= process.env.PORT || 5000
global.email = '[email protected]'
global.github = 'https://github.com/chhaseeb47/HASI-MD'
global.location = 'Pakistan'
global.gurl = 'https://instagram.com/_' // add your username
global.sudo = process.env.SUDO || '923407472645'
global.devs = '923407472645';
global.website = 'https://github.com/chhaseeb47/HASI-MD' // Hello world
global.THUMB_IMAGE = process.env.THUMB_IMAGE || 'https://telegra.ph/file/ea5cfd778d2004c72d965.jpg'
module.exports = {
botname: process.env.BOT_NAME === undefined ? 'HASI-MD' : process.env.BOT_NAME,
ownername: process.env.OWNER_NAME === undefined ? '𝗖𝗛 𝗛𝗔𝗦𝗘𝗘𝗕' : process.env.OWNER_NAME,
sessionName: process.env.SESSION_ID === undefined ? false : process.env.SESSION_ID,
author: process.env.PACK_AUTHER.split(";")[0] === undefined ? '𝗖𝗛 𝗛𝗔𝗦𝗘𝗘𝗕' : process.env.PACK_AUTHER.split(";")[0],
auto_read_status : process.env.AUTO_READ_STATUS === undefined ? false : process.env.AUTO_READ_STATUS,
packname: process.env.PACK_NAME.split(";")[1] === undefined ? 'HASI-MD' : process.env.PACK_NAME.split(";")[1],
autoreaction: process.env.AUTO_REACTION === undefined ? false : process.env.AUTO_REACTION ,
antibadword : process.env.ANTI_BAD_WORD === undefined ? 'nigga' : process.env.ANTI_BAD_WORD,
alwaysonline: process.env.ALWAYS_ONLINE === undefined ? false : process.env.ALWAYS_ONLINE,
antifake : process.env.FAKE_COUNTRY_CODE === undefined ? '212' : 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-1.0.1' : 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)
})