forked from Ronak-20/Jarvis-md2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
42 lines (38 loc) · 2.3 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
const { Sequelize } = require('sequelize');
const fs = require('fs');
if (fs.existsSync('config.env')) {
require('dotenv').config({
path: './config.env'
});
}
const toBool = (x) => x === 'true';
const DATABASE_URL = process.env.DATABASE_URL === undefined ? "./database.db" : process.env.DATABASE_URL
module.exports = {
AUDIO_DATA: process.env.AUDIO_DATA || 'ʟᴏᴋɪ-xᴇʀ;ᴊᴀʀᴠɪꜱ;https://i.imgur.com/ep3UbBP.jpg',
WARN_COUNT: process.env.WARN_COUNT || '3',
LOGS: toBool(process.env.LOGS) || true,
KOYEB_API: process.env.KOYEB_API || '',
SERVERURL: process.env.SERVERURL || '',
SERVER: process.env.SERVER || 'defeat',
ALIVE_DATA : process.env.ALIVE_DATA || "_*Hy &sender i am alive now*_\n\n_PLATFORM: &platform_\n_RUNTIME : &runtime_\n\n_. type alive to update your alive message_",
IMGBB_KEY: ["76a050f031972d9f27e329d767dd988f", "deb80cd12ababea1c9b9a8ad6ce3fab2", "78c84c62b32a88e86daf87dd509a657a"],
SESSION_ID: process.env.SESSION_ID || 'ZnNneU5_J_A_R_V_I_S_ZcTU=',
LANG: process.env.LANG || 'EN',
AUTO_REACTION: process.env.AUTO_REACTION || 'true',
HANDLERS: process.env.HANDLER || 'null',
RMBG_KEY: process.env.RMBG_KEY || false,
BRANCH: 'main',
PORT: toBool(process.env.PORT) || 8000,
STICKER_PACKNAME: process.env.STICKER_PACKNAME || 'ᴊᴀʀᴠɪꜱ;ᴡᴀʙᴏᴛ',
AUTO_STATUS_VIEWS: toBool(process.env.AUTO_STATUS_VIEWS || 'false'),
WELCOME_MSG: process.env.WELCOME_MSG || 'Hi @user Welcome to @gname',
GOODBYE_MSG: process.env.GOODBYE_MSG || 'Hi @user It was Nice Seeing you',
AUTHOR: process.env.AUTHOR || 'ʟᴏᴋɪ-xᴇʀ',
MEDIA_DATA: process.env.MEDIA_DATA|| 'ʟɪꜱᴛ ᴍᴇɴᴜ;ᴊᴀʀᴠɪꜱ-ᴍᴅ;https://i.imgur.com/ltPPMTh.jpeg',
SUDO: process.env.SUDO || '917025673121,',
HEROKU_APP_NAME: process.env.HEROKU_APP_NAME || '',
HEROKU_API_KEY: process.env.HEROKU_API_KEY || '',
BOT_INFO: process.env.BOT_INFO || 'ᴊᴀʀᴠɪꜱ;ʟᴏᴋɪ-xᴇʀ;https://i.imgur.com/VIpl3q5.mp4',
WORK_TYPE: process.env.WORK_TYPE || 'private',
DATABASE: DATABASE_URL === "./database.db" ? new Sequelize({ dialect: "sqlite", storage: DATABASE_URL, logging: false }) : new Sequelize(DATABASE_URL, {dialect: "postgres", ssl: true, protocol: "postgres", dialectOptions: { native: true, ssl: { require: true, rejectUnauthorized: false },}, logging: false }),
};