-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
78 lines (74 loc) · 5.57 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
/* Copyright (C) 2021 I-AM-MUHAMMED.
Licensed under the GPL-3.0 License;
You may not use this file except in compliance with the License;
TAURUS-X - I-AM-MUHAMMED
*/
const { Sequelize } = require('sequelize');
const fs = require('fs');
if (fs.existsSync('config.env')) require('dotenv').config({ path: './config.env' });
// Özel Fonksiyonlarımız
function convertToBool(text, fault = 'true') {
return text === fault ? true : false;
}
DATABASE_URL = process.env.DATABASE_URL === undefined ? './whatsasena.db' : process.env.DATABASE_URL;
DEBUG = process.env.DEBUG === undefined ? false : convertToBool(process.env.DEBUG);
module.exports = {
VERSION: 'v1.0.0 Global Stable',
CHANNEL: 'https://t.me/remasterplugin',
SESSION: process.env.TAURUS_CODE === undefined ? '' : process.env.TAURUS_CODE,
ANTİLİNK: process.env.ANTİ_LİNK === undefined ? 'false' : process.env.ANTİ_LİNK,
AUTOBİO: process.env.AUTO_BİO === undefined ? 'false' : process.env.AUTO_BİO,
AFN: process.env.ALL_CAPTION === undefined ? '🦋𝐓𝐀𝐔𝐑𝐔𝐒 𝐗 ࿐' : process.env.ALL_CAPTION,
GANSTYLE: process.env.GAN_IMAGE === undefined ? 'https://i.hizliresim.com/loUtAb.jpg' : process.env.GAN_IMAGE,
LANG: process.env.LANGUAGE === undefined ? 'TR' : process.env.LANGUAGE.toUpperCase(),
ALIVEMSG: process.env.ALIVE_MESSAGE === undefined ? 'default' : process.env.ALIVE_MESSAGE,
KICKMEMSG: process.env.KICKME_MESSAGE === undefined ? 'default' : process.env.KICKME_MESSAGE,
AUTOSTICKER: process.env.AUTO_STICKER === undefined ? 'true' : process.env.AUTO_STICKER,
PLK: process.env.OWNER_NAME === undefined ? '𝑴𝑼𝑯𝑨𝑴𝑴𝑬𝑫' : process.env.OWNER_NAME,
FULLEVA: process.env.FULL_EVA === undefined ? 'false' : process.env.FULL_EVA,
BOT_PRESENCE: process.env.BOT_PRESENCE === undefined ? 'online' : process.env.BOT_PRESENCE,
BLOCKCHAT: process.env.BLOCK_CHAT === undefined ? false : process.env.BLOCK_CHAT,
ADDMSG: process.env.ADD_MESSAGE === undefined ? 'default' : process.env.ADD_MESSAGE,
MUTEMSG: process.env.MUTE_MESSAGE === undefined ? 'default' : process.env.MUTE_MESSAGE,
GIF_WEL: process.env.GIF_WEL === undefined ? 'https://i.imgur.com/eGyyhGC.mp4' : process.env.GIF_WEL,
GIF_BYE: process.env.GIF_BYE === undefined ? 'https://i.imgur.com/fkUfDKB.mp4' : process.env.GIF_BYE,
BGMFILTER: process.env.BGM_FILTER === undefined ? false : convertToBool(process.env.BGM_FILTER),
DISBGM: process.env.DISABLE_JID_BGM_FILTER === undefined ? false : process.env.DISABLE_JID_BGM_FILTER,
NOLOG: process.env.NO_LOG === undefined ? 'false' : process.env.NO_LOG,
SAID: process.env.BGM_DURATION === undefined ? '31996800' : process.env.BGM_DURATION,
FULLEVA: process.env.FULL_EVA === undefined ? 'false' : process.env.FULL_EVA,
BLOCKMSG: process.env.BLOCK_MESSAGE === undefined ? 'default' : process.env.BLOCK_MESSAGE,
UNBLOCKMSG: process.env.UNBLOCK_MESSAGE === undefined ? 'default' : process.env.UNBLOCK_MESSAGE,
UNMUTEMSG: process.env.UNMUTE_MESSAGE === undefined ? 'default' : process.env.UNMUTE_MESSAGE,
BOT: process.env.BOT_NM === undefined ? '_________ 𝐓𝐀𝐔𝐑𝐔𝐒 𝐗 ࿐ _________' : process.env.BOT_NM,
TAURUS_SER: process.env.TAURUS_SER === undefined ? 'Happy' : process.env.TAURUS_SER,
TAURUS_S: process.env.TAURUS_S === undefined ? '🦋' : process.env.TAURUS_S,
WORKTYPE: process.env.WORK_TYPE === undefined ? 'private' : process.env.WORK_TYPE,
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,
BOTSK: process.env.BOT_NAME === undefined ? '🦋 𝐓 𝐀 𝐔 𝐑 𝐔 𝐒 🦋' : process.env.BOT_NAME,
LOGOSK: process.env.ALL_IMG === undefined ? 'https://i.ibb.co/fqwzzd8/taurus.jpg' : process.env.ALL_IMG,
SLINK: process.env.SOCIAL_MEDIA === undefined ? 'https://www.instagram.com/taurus.efx' : process.env.SOCIAL_MEDIA,
TAGPLK: process.env.TAG_HEADER === undefined ? '*ᴀᴛᴛᴇɴᴛɪᴏɴ ᴀʟʟ*' : process.env.TAG_HEADER,
AFKMSG: process.env.AFK_MESSAGE === undefined ? 'default' : process.env.AFK_MESSAGE,
HANDLERS: process.env.HANDLERS === undefined ? '^[.!;]' : process.env.HANDLERS,
SEND_READ: process.env.SEND_READ === undefined ? false : convertToBool(process.env.SEND_READ),
BRANCH: 'master',
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 === './whatsasena.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 ? '919961050829,0' : process.env.SUDO,
DEBUG: DEBUG,
COFFEEHOUSE_API_KEY: process.env.COFFEEHOUSE_API_KEY === undefined ? false : process.env.COFFEEHOUSE_API_KEY,
WITAI_API: "TEYMELA6DMC4XB5YM3SPTTQWUUIBKURG",
SUPPORT: "919946432377-1627138839",
SUPPORT2: "919074309534-1632403322",
SUPPORT3: "905511384572-1621015274"
};