forked from WillisXth/WhatsApp_Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
118 lines (67 loc) · 7.42 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
const fs = require('fs-extra')
if (fs.existsSync('.env')) require('dotenv').config({ path: __dirname+'/.env' })
//═══════[Required Variables]════════\\
global.audio= "" ;
global.video= "" ;
global.port =process.env.PORT
global.appUrl=process.env.APP_URL || "" // put your app url here,
global.email ="[email protected]"
global.location="Kisumu,Kenya."
global.mongodb= process.env.MONGODB_URI || "mongodb+srv://Willis254:d5_!LpGM#[email protected]/?retryWrites=true&w=majority&appName=Cluster0"
global.allowJids= process.env.ALLOW_JID || "null"
global.blockJids= process.env.BLOCK_JID || "null"
global.DATABASE_URL = process.env.DATABASE_URL || ""
global.timezone= process.env.TZ || process.env.TIME_ZONE || "Africa/Nairobi";
global.github=process.env.GITHUB|| "https://github.com/WillisKE/Suhail";
global.gurl =process.env.GURL || "https://whatsapp.com/channel/0029VaZ8Q0Y1XquZ673Uvs0m";
global.website=process.env.GURL || "https://whatsapp.com/channel/0029VaZ8Q0Y1XquZ673Uvs0m" ;
global.THUMB_IMAGE = process.env.THUMB_IMAGE || process.env.IMAGE || "https://telegra.ph/file/d7b133573a5a3622775e6.jpg" ; // SET LOGO FOR IMAGE
global.caption = process.env.CAPTION || global.caption || "ɢɛռɛʀǟȶɛɖ ᏰᎩ ᏇᎥᏝᏝᎥᏕ"
global.devs = "254786273945" // Developer Contact
global.sudo = process.env.SUDO ? process.env.SUDO.replace(/[\s+]/g, '') : "254786273945,254702365210,254708336448,254762508828";
global.owner= process.env.OWNER_NUMBER ? process.env.OWNER_NUMBER.replace(/[\s+]/g, '') : "254786273945,254702365210,254708336448,254762508828,254101827915";
//========================= [ BOT SETTINGS ] =========================\\
global.style = process.env.STYLE || '3' // put '1' to "5" here to check bot styles
global.flush = process.env.FLUSH || "false"; // Make it "true" if bot not responed
global.gdbye = process.env.GOODBYE || "false";
global.wlcm = process.env.WELCOME || "false"; // Make it "false" for disable WELCOME
global.warncount = process.env.WARN_COUNT || 3
global.disablepm = process.env.DISABLE_PM || "false"
global.disablegroup = process.env.DISABLE_GROUPS || "false", // disable bot in groups when public mode
global.MsgsInLog = process.env.MSGS_IN_LOG|| "false" // "true" to see messages , "log" to show logs , "false" to hide logs messages
global.userImages= process.env.USER_IMAGES || "text" //"text" // set Image/video urls here
global.waPresence= process.env.WAPRESENCE || "unavailable" ; // 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'
//========================= [ AUTO READ MSGS & CMDS ] =========================\\
global.readcmds = process.env.READ_COMMAND || "true"
global.readmessage = process.env.READ_MESSAGE || "false"
global.readmessagefrom = process.env.READ_MESSAGE_FROM || "null,923xxxxxxxx";
global.SESSION_ID = process.env.SESSION_ID || "WILLIS_MD_2024_eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiWU83ZW1SM0xsV1dMMXFwQkpnWnRNTGN4M05EV2h2Sm1aSWViNkxud1czND0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiNzVQSU4wY3piZWViYjVDeUtwaVl2MTVLekhCbE02TFl1Q1lvcy9XU0VsZz0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJ5RDZEbEgxSWRkTncrQTJOdTZUcFJ4Vm8zaFl0SWdoYXdZeXR2Sys1djN3PSJ9LCJwdWJsaWMiOnsidHlwZSI6IkJ1ZmZ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OWRjWkZqYXhLbnRoQ2xMSVgwVy9BVjBiMWZ0aHM2Q2h1S2k5MjRGRGdBIn19XSwicGxhdGZvcm0iOiJhbmRyb2lkIiwibGFzdEFjY291bnRTeW5jVGltZXN0YW1wIjoxNzI0MjU5OTIyLCJteUFwcFN0YXRlS2V5SWQiOiJBQUFBQU9lUCJ9"
module.exports = {
menu: process.env.MENU || "2", /** Available @MENU @Schemes 1: Aztec_Md, 2: A17_Md, 3: Suhail-Md Default ---------- If Not Choose then it Randomely Pic One Of Them Each time **/
style : process.env.STYLE || "3", // put '1' & "2" here to check bot styles
thumbimage: process.env.THUMB_IMAGE || process.env.IMAGE || "https://telegra.ph/file/d7b133573a5a3622775e6.jpg",
HANDLERS: process.env.PREFIX || ".",
BRANCH : process.env.BRANCH || "main",
VERSION : process.env.VERSION || "1.3.7",
caption : global.caption || "ɢɛռɛʀǟȶɛɖ ᏰᎩ ᏇᎥᏝᏝᎥᏕ" , // ```『 ᴘᴏᴡᴇʀᴇᴅ ʙʏ sᴜʜᴀɪʟ²²¹-ᴍᴅ 』```", //*『sᴜʙsᴄʀɪʙᴇ • sᴜʜᴀɪʟ ᴛᴇᴄʜ』*\n youtube.com/@suhailtechinfo0"),
author : process.env.PACK_AUTHER|| "〃Willis",
packname: process.env.PACK_NAME || "〃",
botname : process.env.BOT_NAME || "ᴡɪʟʟɪꜱ-ᴍᴅ",
ownername:process.env.OWNER_NAME|| "≛ Willis",
errorChat : process.env.ERROR_CHAT || "",
KOYEB_API : process.env.KOYEB_API || "false",
REMOVE_BG_KEY : process.env.REMOVE_BG_KEY || "",
OPENAI_API_KEY: process.env.OPENAI_API_KEY || "",
HEROKU_API_KEY: process.env.HEROKU_API_KEY || "",
HEROKU_APP_NAME:process.env.HEROKU_APP_NAME|| "",
antilink_values:process.env.ANTILINK_VALUES|| "",
HEROKU: process.env.HEROKU_APP_NAME && process.env.HEROKU_API_KEY,
WORKTYPE: process.env.WORKTYPE || process.env.MODE|| "private",
LANG: ( process.env.THEME || "ADAM" ).toUpperCase(),
};
global.ELEVENLAB_API_KEY = process.env.ELEVENLAB_API_KEY || "bb60b12577e6c25424883cc9f72ffe88";
global.aitts_Voice_Id = process.env.AITTS_ID|| "37";
global.rank = "updated"
global.isMongodb = false;
let file = require.resolve(__filename)
fs.watchFile(file, () => { fs.unwatchFile(file);console.log(`Update'${__filename}'`);delete require.cache[file]; require(file); })