forked from devibrah/NORMAL-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
50 lines (48 loc) · 2.41 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
const fs = require('fs-extra');
const { Sequelize } = require('sequelize');
if (fs.existsSync('config.env'))
require('dotenv').config({ path: __dirname + '/config.env' });
const path = require("path");
const databasePath = path.join(__dirname, './database.db');
const DATABASE_URL = process.env.DATABASE_URL === undefined
? databasePath
: process.env.DATABASE_URL;
module.exports = { session: process.env.SESSION_ID || '',
PREFIXE: process.env.PREFIX || ".",
OWNER_NAME: process.env.OWNER_NAME || "Ibrahim Adams",
NUMERO_OWNER : process.env.NUMERO_OWNER || " Ibrahim Adams",
AUTO_READ_STATUS: process.env.AUTO_READ_STATUS || "yes",
AUTO_DOWNLOAD_STATUS: process.env.AUTO_DOWNLOAD_STATUS || 'no',
BOT : process.env.BOT_NAME || 'BMW_MD',
URL : process.env.BOT_MENU_LINKS || 'https://files.catbox.moe/h2ydge.jpg',
MODE: process.env.PUBLIC_MODE || "yes",
PM_PERMIT: process.env.PM_PERMIT || 'yes',
HEROKU_APP_NAME : process.env.HEROKU_APP_NAME,
HEROKU_APY_KEY : process.env.HEROKU_APY_KEY ,
WARN_COUNT : process.env.WARN_COUNT || '3' ,
ETAT : process.env.PRESENCE || '',
CHATBOT : process.env.PM_CHATBOT || 'no',
DP : process.env.STARTING_BOT_MESSAGE || "yes",
ANTIDELETE1 : process.env.ANTIDELETE1 || 'yes',
ANTIDELETE2 : process.env.ANTIDELETE2 || 'yes',
MENUTYPE : process.env.MENUTYPE || '',
ANTICALL : process.env.ANTICALL || 'yes',
AUTO_REACT : process.env.AUTO_REACT || 'yes',
AUTO_REACT_STATUS : process.env.AUTO_REACT_STATUS || 'yes',
AUTO_REPLY : process.env.AUTO_REPLY || 'yes',
AUTO_READ : process.env.AUTO_READ || 'yes',
AUTO_SAVE_CONTACTS : process.env.AUTO_SAVE_CONTACTS || 'yes',
AUTO_REJECT_CALL : process.env.AUTO_REJECT_CALL || 'yes',
AUTO_BIO : process.env.AUTO_BIO || 'yes',
AUDIO_REPLY : process.env.AUDIO_REPLY || 'yes',
DATABASE_URL,
DATABASE: DATABASE_URL === databasePath
? "postgresql://postgres:bKlIqoOUWFIHOAhKxRWQtGfKfhGKgmRX@viaduct.proxy.rlwy.net:47738/railway" : "postgresql://postgres:bKlIqoOUWFIHOAhKxRWQtGfKfhGKgmRX@viaduct.proxy.rlwy.net:47738/railway",
};
let fichier = require.resolve(__filename);
fs.watchFile(fichier, () => {
fs.unwatchFile(fichier);
console.log(`mise à jour ${__filename}`);
delete require.cache[fichier];
require(fichier);
});