forked from franceking1/Flash-Md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set.js
50 lines (46 loc) · 4.8 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
const fs = require('fs-extra');
const path = require("path");
const { Sequelize } = require('sequelize');
// Load environment variables if the .env file exists
if (fs.existsSync('set.env')) {
require('dotenv').config({ path: __dirname + '/set.env' });
}
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 || 'FLASH-MD-WA-BOT;;;=>eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiS1BSK1JzbWI4NlVsaU5vL0c4amd5RWh4TGxNZXF4aVdBOVMzVkFIbFpsOD0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiL2wwY3E4UCtQcWJPa1V0WC9FSDB4TXRpUCtRbEthbnFKS0p5cFI5NlpuZz0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJxRFl4dmw4d0FoeWkrN1Y5NGFKQXg2WW9ib0NKN2NKeURFRXAwbmJkZEdvPSJ9LCJwdWJsaWMiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJyZllzYzUzajZVS0Q5QytVeHJVKzdUb0R3RmNNV3duTjZuVEdPblRxaXhzPSJ9fSwic2lnbmVkSWRlbnRpdHlLZXkiOnsicHJpdmF0ZSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IjBMUzFDYTJKbHhOS0ZwaGFjR1dJT29EeTZGNmw2QUY4RWlzWUVEVllPM009In0sInB1YmxpYyI6eyJ0eXBlIjoiQnVmZmVyIiwiZG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sidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJnTnNVdUIrWjFPY29XV1l1NjBEb0tXM0pvUTA9In0sInJlZ2lzdHJhdGlvbiI6e30sInBhaXJpbmdDb2RlIjoiSFFGUFM2RFYiLCJtZSI6eyJpZCI6IjIzMjc0NDQ4MTMwOjMzQHMud2hhdHNhcHAubmV0IiwibmFtZSI6Ik1yIFRha2UgVGVlIn0sImFjY291bnQiOnsiZGV0YWlscyI6IkNNaURvZE1ERUsvTXFMb0dHQUVnQUNnQSIsImFjY291bnRTaWduYXR1cmVLZXkiOiJPWGovS0RzSE9iUDgyamdESWZiRGxIUXFGMFZxUEpkc1FSOGtPdXpHSVFBPSIsImFjY291bnRTaWduYXR1cmUiOiIvU0NlbStQU0gyclgvcnlYVElFTWVseWNFWUJZSzE5NWlVYmxkdVhYRTB6UytPY2VxNUdWUU43MHppVlVRNzlsTUR3YThHVkNBYXFZRDMzL0p5OHlCZz09IiwiZGV2aWNlU2lnbmF0dXJlIjoiR3hHSThDdGxjd0FiL3BxSWk4SnQxZy95OXJkdHlqemxEN3FZZFpUU1Y1bWVPb3R5eGkxVFVBZE1iNkwreE1qMzBkcjZSMWE2eEtEdjNueDJDMVR3aFE9PSJ9LCJzaWduYWxJZGVudGl0aWVzIjpbeyJpZGVudGlmaWVyIjp7Im5hbWUiOiIyMzI3NDQ0ODEzMDozM0BzLndoYXRzYXBwLm5ldCIsImRldmljZUlkIjowfSwiaWRlbnRpZmllcktleSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IkJUbDQveWc3Qnptei9ObzRBeUgydzVSMEtoZEZhanlYYkVFZkpEcnN4aUVBIn19XSwicGxhdGZvcm0iOiJzbWJhIiwibGFzdEFjY291bnRTeW5jVGltZXN0YW1wIjoxNzMyOTEyNzAxfQ==',
PREFIXES: (process.env.PREFIX || '').split('.').map(prefix => prefix.trim()).filter(Boolean),
OWNER_NAME: process.env.OWNER_NAME || "Mr Take Tee",
OWNER_NUMBER: process.env.OWNER_NUMBER || "23274448130",
AUTO_READ_STATUS: process.env.AUTO_VIEW_STATUS || "on",
AUTOREAD_MESSAGES: process.env.AUTO_READ_MESSAGES || "on",
CHATBOT: process.env.CHAT_BOT || "off",
AUTO_DOWNLOAD_STATUS: process.env.AUTO_SAVE_STATUS || 'off',
A_REACT: process.env.AUTO_REACTION || 'on',
L_S: process.env.STATUS_LIKE || 'on',
AUTO_BLOCK: process.env.BLOCK_ALL || 'off',
URL: process.env.MENU_LINKS || 'https://files.catbox.moe/c2jdkw.jpg',
MODE: process.env.BOT_MODE || "private",
PM_PERMIT: process.env.PM_PERMIT || 'on',
HEROKU_APP_NAME: process.env.HEROKU_APP_NAME,
HEROKU_API_KEY: process.env.HEROKU_API_KEY,
WARN_COUNT: process.env.WARN_COUNT || '3',
PRESENCE: process.env.PRESENCE || '',
ADM: process.env.ANTI_DELETE || 'on',
TZ: process.env.TIME_ZONE || 'Africa/Nairobi',
DP: process.env.STARTING_MESSAGE || "on",
ANTICALL: process.env.ANTICALL || 'on',
DATABASE_URL,
DATABASE: DATABASE_URL === databasePath
? "postgresql://flashmd_user:JlUe2Vs0UuBGh0sXz7rxONTeXSOra9XP@dpg-cqbd04tumphs73d2706g-a/flashmd"
: "postgresql://flashmd_user:JlUe2Vs0UuBGh0sXz7rxONTeXSOra9XP@dpg-cqbd04tumphs73d2706g-a/flashmd",
W_M: null, // Add this line
};
// Watch for changes in this file and reload it automatically
const fichier = require.resolve(__filename);
fs.watchFile(fichier, () => {
fs.unwatchFile(fichier);
console.log(`Updated ${__filename}`);
delete require.cache[fichier];
require(fichier);
});