-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
88 lines (66 loc) · 5.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const { Sequelize } = require('sequelize');
const fs = require('fs');
if (fs.existsSync('config.env')) require('dotenv').config({ path: './config.env' });
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
function convertToBool(text, fault = 'true') {
return text === fault ? true : false;
}
process.env['DATABASE_URL'] = 'postgres://kaviyaah_queen_diana_user:WNWHbZLWvEi1Gyp1wo86AYuUZJMHCjtO@dpg-ce5vj62rrk071o4j2a5g-a.frankfurt-postgres.render.com/kaviyaah_queen_diana'
DATABASE_URL = process.env.DATABASE_URL === undefined ? './diana.db' : process.env.DATABASE_URL;
DEBUG = process.env.DEBUG === undefined ? false : convertToBool(process.env.DEBUG);
module.exports = {
VERSION: 'v9.0.0',
SESSION: process.env.DIANA_SESSION === undefined ? '' : process.env.DIANA_SESSION,
VIDEOD: process.env.VIDEO_DOWNLOADING === undefined ? '*🎭Downloading Your Video*' : process.env.VIDEO_DOWNLOADING,
VIDEOU: process.env.VIDEO_UPLOADING === undefined ? '*🚀Uploading Your Video*' : process.env.VIDEO_UPLOADING,
SONGD: process.env.SONG_DOWNLOADING === undefined ? '*◦•●◉✿Downloading Your Song✿◉●•◦*' : process.env.SONG_DOWNLOADING,
SONGU: process.env.SONG_UPLOADING === undefined ? '*◦•●◉✿Uploading Your Song✿◉●•◦*' : process.env.SONG_UPLOADING,
FOOTER: process.env.FOOTER === undefined ? 'Queen Diana' : process.env.FOOTER,
CAPTION: process.env.CAPTION === undefined ? '*👸Genarated by Queen Diana👸*' : process.env.CAPTION,
ANTIBAD: process.env.ANTIBAD_WORD === undefined ? 'false' : process.env.ANTIBAD_WORD,
AUTO_REPLY: process.env.AUTO_REPLY === undefined ? 'false' : process.env.AUTO_REPLY,
STICKERP: process.env.STICKER_REPLY === undefined ? false : convertToBool(process.env.STICKER_REPLY),
ANTILINK: process.env.ANTI_LINK === undefined ? 'false' : process.env.ANTI_LINK,
TIME_ZONE: process.env.TIME_ZONE === undefined ? 'Asia/Colombo' : process.env.TIME_ZONE,
AUTOBIO: process.env.AUTO_BIO === undefined ? 'false' : process.env.AUTO_BIO,
OWNERNAME: process.env.OWNER_NAME === undefined ? 'default' : process.env.OWNER_NAME,
LANG: process.env.LANGUAGE === undefined ? 'EN' : process.env.LANGUAGE.toUpperCase(),
ALIVEMSG: process.env.ALIVE_MESSAGE === undefined ? 'default' : process.env.ALIVE_MESSAGE,
ALIVEIMG: process.env.ALIVE_LOGO === undefined ? 'default' : process.env.ALIVE_LOGO,
MENULOGO: process.env.MENU_LOGO === undefined ? 'https://telegra.ph/file/3217c19d381ae34b38012.jpg' : process.env.MENU_LOGO,
KICKMEMSG: process.env.KICKME_MESSAGE === undefined ? 'default' : process.env.KICKME_MESSAGE,
BLOCKCHAT: process.env.BLOCK_CHAT === undefined ? false : process.env.BLOCK_CHAT,
WELCOME_GIF: process.env.WELCOME_GIF === undefined ? 'https://i.imgur.com/nErXUGj.mp4' : process.env.WELCOME_GIF,
BYE_GIF: process.env.GOOD_BYE_GIF === undefined ? 'https://i.imgur.com/Z1jCYGN.mp4' : process.env.GOOD_BYE_GIF,
BOTNAME: process.env.BOT_NAME === undefined ? 'Queen Diana' : process.env.BOT_NAME,
NOLOG: process.env.NO_LOG === undefined ? 'false' : process.env.NO_LOG,
BLOCKMSG: process.env.BLOCK_MESSAGE === undefined ? 'default' : process.env.BLOCK_MESSAGE,
UNBLOCKMSG: process.env.UNBLOCK_MESSAGE === undefined ? 'default' : process.env.UNBLOCK_MESSAGE,
MUTEMSG: process.env.MUTE_MESSAGE === undefined ? 'default' : process.env.MUTE_MESSAGE,
UNMUTEMSG: process.env.UNMUTE_MESSAGE === undefined ? 'default' : process.env.UNMUTE_MESSAGE,
PROMOTEMSG: process.env.PROMOTE_MESSAGE === undefined ? 'default' : process.env.PROMOTE_MESSAGE,
DEMOTEMSG: process.env.DEMOTE_MESSAGE === undefined ? 'default' : process.env.DEMOTE_MESSAGE,
BANMSG: process.env.BAN_MESSAGE === undefined ? 'default' : process.env.BAN_MESSAGE,
ADDMSG: process.env.ADD_MESSAGE === undefined ? 'default' : process.env.ADD_MESSAGE,
INBOX_NOT: process.env.INBOX_NOT_WORKING === undefined ? 'true' : process.env.INBOX_NOT_WORKING,
STPACK: process.env.STICKER_PACK === undefined ? 'QUEEN DIANA' : process.env.STICKER_PACK,
STAUTHOUR: process.env.STICKER_AUTHOR === undefined ? 'CREATED BY QUEEN DIANA👸' : process.env.STICKER_AUTHOR,
WORKTYPE: process.env.WORK_TYPE === undefined ? 'private' : process.env.WORK_TYPE,
PANEL_COMMAND: process.env.PANEL_COMMAND === undefined ? 'menu' : process.env.PANEL_COMMAND,
HANDLERS: process.env.HANDLERS === undefined ? '^[.!;]' : process.env.HANDLERS,
SEND_READ: process.env.SEND_READ === undefined ? false : convertToBool(process.env.SEND_READ),
MAHN: '94769370897,0' ,
BRANCH: 'main',
HEROKU: {
HEROKU: process.env.HEROKU === undefined ? false : convertToBool(process.env.HEROKU),
API_KEY: process.env.HEROKU_API_KEY === undefined ? '' : process.env.HEROKU_API_KEY,
APP_NAME: process.env.HEROKU_APP_NAME === undefined ? '' : process.env.HEROKU_APP_NAME
},
DATABASE_URL: DATABASE_URL,
DATABASE: DATABASE_URL === './diana.db' ? new Sequelize({ dialect: "sqlite", storage: DATABASE_URL, logging: DEBUG }) : new Sequelize(DATABASE_URL, { dialectOptions: { ssl: { require: true, rejectUnauthorized: false } }, logging: DEBUG }),
RBG_API_KEY: process.env.REMOVE_BG_API_KEY === undefined ? false : process.env.REMOVE_BG_API_KEY,
NO_ONLINE: process.env.NO_ONLINE === undefined ? true : convertToBool(process.env.NO_ONLINE),
SUDO: process.env.SUDO === undefined ? false : process.env.SUDO,
DEBUG: DEBUG,
COFFEEHOUSE_API_KEY: process.env.COFFEEHOUSE_API_KEY === undefined ? false : process.env.COFFEEHOUSE_API_KEY
};