-
Notifications
You must be signed in to change notification settings - Fork 607
/
set.js
56 lines (43 loc) · 2.11 KB
/
set.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
const fs = require('fs-extra');
const { Sequelize } = require('sequelize');
if (fs.existsSync('set.env'))
require('dotenv').config({ path: __dirname + '/set.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 || 'Byte;;;',
////////////////////////////////
PREFIXE: process.env.PREFIX || ".",
///////////////////////////
A_REACT : process.env.AUTO_REACTION || 'on',
CHATBOT: process.env.CHAT_BOT || "off",
OWNER_NAME: process.env.OWNER_NAME || "TALKDROVE",
NUMERO_OWNER : process.env.OWNER_NUMBER || "923072380380",
AUTO_READ_STATUS: process.env.AUTO_READ_STATUS || "yes",
AUTO_DOWNLOAD_STATUS: process.env.AUTO_DOWNLOAD_STATUS || 'non',
BOT : process.env.BOT_NAME || 'BYTE-MD',
OPENAI_API_KEY : process.env.OPENAI_API_KEY || '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',
URL : process.env.BOT_MENU_LINKS || 'https://raw.githubusercontent.com/HyHamza/HyHamza/main/Images/BYTE-MD-LITE.jpeg',
MODE: process.env.PUBLIC_MODE || "yes",
PM_PERMIT: process.env.PM_PERMIT || 'no',
HEROKU_APP_NAME : process.env.HEROKU_APP_NAME,
HEROKU_APY_KEY : process.env.HEROKU_API_KEY ,
WARN_COUNT : process.env.WARN_COUNT || '3' ,
ETAT : process.env.PRESENCE || '',
//GPT : process.env.OPENAI_API_KEY || '',
DP : process.env.STARTING_BOT_MESSAGE || "yes",
ADM : process.env.ANTI_DELETE_MESSAGE || 'yes',
DATABASE_URL,
DATABASE: DATABASE_URL === databasePath
? "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9" : "postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9",
};
let fichier = require.resolve(__filename);
fs.watchFile(fichier, () => {
fs.unwatchFile(fichier);
console.log(`Update ${__filename}`);
delete require.cache[fichier];
require(fichier);
});