-
Notifications
You must be signed in to change notification settings - Fork 474
/
config.js
142 lines (81 loc) ยท 8.43 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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="Morogoro,Tanzania."
global.mongodb= process.env.MONGODB_URI || "mongodb+srv://wasitech10:WASImd##[email protected]/?retryWrites=true&w=majority"
global.allowJids= process.env.ALLOW_JID || "null"
global.blockJids= process.env.BLOCK_JID || "[email protected]"
global.DATABASE_URI = process.env.DATABASE_URL || ""
global.timezone= process.env.TZ || process.env.TIME_ZONE || "Asia/Pakistan";
global.github=process.env.GITHUB|| "https://github.com/wasixd/WASI-MD";
global.gurl =process.env.GURL || "https://whatsapp.com/channel/0029VaDK8ZUDjiOhwFS1cP2j";
global.website=process.env.GURL || "https://whatsapp.com/channel/0029VaDK8ZUDjiOhwFS1cP2j" ;
global.THUMB_IMAGE = process.env.THUMB_IMAGE || process.env.IMAGE || "https://github.com/wasixd/WASI-MD/blob/main/lib/assets/suhail.jpg" ; // SET LOGO FOR IMAGE
global.devs = "923192173398" // Developer Contact
global.sudo = process.env.SUDO ? process.env.SUDO.replace(/[\s+]/g, '') : "null";
global.owner= process.env.OWNER_NUMBER ? process.env.OWNER_NUMBER.replace(/[\s+]/g, '') : "923192173398";
//========================= [ BOT SETTINGS ] =========================\\
global.style = process.env.STYLE || '5', // put '1' to "5" here to check bot styles
global.flush = process.env.FLUSH || "true"; // 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 || 5,
global.disablepm = process.env.DISABLE_PM || "false",
global.MsgsInLog = process.env.MSGS_IN_LOG|| "false", // "true" to see messages , "log" to open logs , "false" to hide logs messages
global.userImages= process.env.USER_IMAGES|| "text",
global.waPresence= process.env.WAPRESENCE || "set according to your need" ; // 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'
//========================= [ AUTO READ MSGS & CMDS ] =========================\\
global.readcmds = process.env.READ_COMMAND || "false"
global.readmessage = process.env.READ_MESSAGE || "false"
global.readmessagefrom = process.env.READ_MESSAGE_FROM || "923135673658,923192173398";
//========================= [ AUTO SAVE & READ STATUS ] =========================\\
global.read_status = process.env.AUTO_READ_STATUS || "true"
global.save_status = process.env.AUTO_SAVE_STATUS || "false"
global.save_status_from = process.env.SAVE_STATUS_FROM || "923135673658,923192173398";
global.read_status_from = process.env.READ_STATUS_FROM || "923135673658,923192173398";
global.api_smd = "https://api-smd-1.vercel.app"
global.scan = "https://myqr-43bb863fa5eb.herokuapp.com/";
global.SESSION_ID = process.env.SESSION_ID || "eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiSUIzOEJ4Z3dBbGlIMllHcEpqb3BySjN4VFg5ZUN5a2hRL084Tkxya1EwST0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiTnZtZXdQU0ZHL1h3aHh4REFjSll3YU4raEkvSkZnVG1PY1JDUTdjbi9WND0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJtUEhsa2F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XRpZXMiOlt7ImlkZW50aWZpZXIiOnsibmFtZSI6IjkyMzE5MjE3MzM5ODoyM0BzLndoYXRzYXBwLm5ldCIsImRldmljZUlkIjowfSwiaWRlbnRpZmllcktleSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IkJZL0tkZHF1SnA0dVVSTEc1WHJtK0dkTjUyRXJrYjMxNDlobnFuUi91d0F6In19XSwicGxhdGZvcm0iOiJzbWJhIiwicm91dGluZ0luZm8iOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJDQUlJQ0E9PSJ9LCJsYXN0QWNjb3VudFN5bmNUaW1lc3RhbXAiOjE3MTk2NjkyNzMsImxhc3RQcm9wSGFzaCI6IjJGOXl4eiIsIm15QXBwU3RhdGVLZXlJZCI6IkFBQUFBT3FtIn0=" ;
module.exports = {
menu: process.env.MENU || "", /** Available @MENU @Schemes 1: Aztec_Md, 2: A17_Md, 3: Venocyber-Md Default ---------- If Not Choose then it Randomely Pic One Of Them Each time **/
HANDLERS: process.env.PREFIX || ".",
BRANCH : process.env.BRANCH || "main",
VERSION : process.env.VERSION || "V.1.0.0",
caption : process.env.CAPTION || "๐ต๐ธ๐ป๐ด ๐ถ๐ด๐ฝ๐ด๐๐ฐ๐๐ด๐ณ ๐ฑ๐ ๏ผท๏ผก๏ผณ๏ผฉ ๏ผญ๏ผค๐ฉ" , // ```ใ ยฒโด แด แดษดแดแดสสแดส-แดแด
ใ```", //*ใแด แดษดแดแดสสแดส แดแด
ใ*\n youtube.com/@JASTINMTEWA-vn9pl"),
author : process.env.PACK_AUTHER|| "๐ช๐๐ฆ๐ ",
packname: process.env.PACK_NAME || "โฅ๏ธ",
botname : process.env.BOT_NAME || "๐ช๐๐ฆ๐ ๐ ๐",
ownername:process.env.OWNER_NAME|| "It's ๐๐ง๐ซ๐ซ๐ช๐๐ฆ๐",
errorChat : process.env.ERROR_CHAT || "",
KOYEB_API : process.env.KOYEB_API || "false",
REMOVE_BG_KEY : process.env.REMOVE_BG_KEY || "neLbXXrp8bSDcohnp1CW5UEa",
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|| "chat.whatsapp.com",
HEROKU: process.env.HEROKU_APP_NAME && process.env.HEROKU_API_KEY,
aitts_Voice_Id : process.env.AITTS_ID || "01",
ELEVENLAB_API_KEY: process.env.ELEVENLAB_API_KEY || "",
WORKTYPE: process.env.WORKTYPE||process.env.MODE || "public",
LANG: process.env.THEME ? process.env.THEME.toUpperCase() : "WASI",
};
global.rank = "updated"
global.isMongodb = true ;
let file = require.resolve(__filename)
fs.watchFile(file, () => { fs.unwatchFile(file);console.log(`Update'${__filename}'`);delete require.cache[file]; require(file); })
// ========================= [ Disables in V.1.0.0 ] ===============================\\
//style : process.env.STYLE || "2", // put '1' & "2" here to check bot styles
//readmessage:process.env.READ_MESSAGE|| "false",
//warncount: process.env.WARN_COUNT || 3,
//userImages:process.env.USER_IMAGES|| "text", // SET IMAGE AND VIDEO URL FOR BOT MENUS
//disablepm: process.env.DISABLE_PM || "false",
//MsgsInLog: process.env.MSGS_IN_LOG|| "false", // "true" to see messages , "log" to open logs , "false" to hide logs messages
//readcmds:process.env.READ_COMMANDS|| "false",
//alwaysonline:process.env.WAPRESENCE|| "unavailable", // 'unavailable' | 'online' | 'composing' | 'recording' | 'paused'
//read_status: process.env.AUTO_READ_STATUS || "false",
//save_status: process.env.AUTO_SAVE_STATUS || "false",