forked from VajiraTech/VAJIRA_MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.js
19 lines (17 loc) · 1.15 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const fs = require('fs');
if (fs.existsSync('config.env')) require('dotenv').config({ path: './config.env' });
function convertToBool(text, fault = 'true') {
return text === fault ? true : false;
}
module.exports = {
SESSION_ID: process.env.SESSION_ID === undefined ? 'VAJIRA-MD=7Q1ETQTR#oSp_zBsM10-fbVnZOrgdF_uit4OaSovhPoZpMIkfKkI' : process.env.SESSION_ID,
OWNER_NUMBER: process.env.OWNER_NUMBER === undefined ? '94776938009' : process.env.OWNER_NUMBER,
N_JID: process.env.N_JID=== undefined ? '': process.env.N_JID,
PREFIX: process.env.PREFIX || '.' ,
FOOTER: process.env.FOOTER=== undefined ? '👨💻 ᴠᴀᴊɪʀᴀ ᴍᴅ ʙʏ ᴛᴄ ᴛᴇᴀᴍ 👨💻': process.env.FOOTER,
POSTGRESQL_URL: process.env.POSTGRESQL_URL === undefined ? 'postgres://vajiratech_user:oSIFl2xmSojMZ0rkzdd0g0W6msuVTpNN@dpg-cpd7fjv109ks73e5gtig-a.frankfurt-postgres.render.com/vajiratech' : process.env.POSTGRESQL_URL,
MAX_SIZE: 500,
PAIR: 'https://vajirasession-430ab1324465.herokuapp.com/code?number=',
ALIVE: process.env.ALIVE || '> VAJIRA MD' ,
DELETEMSGSENDTO : process.env.DELETEMSGSENDTO === undefined ? '' : process.env.DELETEMSGSENDTO
};