-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
142 lines (81 loc) ยท 5.75 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="india/kolkata"
global.mongodb= process.env.MONGODB_URI || ""
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 || "india/Kolkata";
global.github=process.env.GITHUB|| "https://github.com/Arun696969/Allen-Bot";
global.gurl =process.env.GURL || "https://whatsapp.com/channel/0029Vaf78QkBA1evbzjbGO39";
global.website=process.env.GURL || "https://whatsapp.com/channel/0029Vaf78QkBA1evbzjbGO39" ;
global.THUMB_IMAGE = process.env.THUMB_IMAGE || process.env.IMAGE || "https://i.imgur.com/INBwK1U.jpeg" ; // SET LOGO FOR IMAGE
global.devs = "919728979562" // 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, '') : "919728979562";
//========================= [ 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 || 2,
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 || "unavailable" ; // '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 || "918318542882,918xxxxxxxxx";
//========================= [ AUTO SAVE & READ STATUS ] =========================\\
global.read_status = process.env.AUTO_READ_STATUS || "false"
global.save_status = process.env.AUTO_SAVE_STATUS || "false"
global.save_status_from = process.env.SAVE_STATUS_FROM || "null,918xxxxxxxx";
global.read_status_from = process.env.READ_STATUS_FROM || "918318542882,918xxxxxxxx";
global.api_smd = "https://api-smd-1.vercel.app"
global.scan = "https://suhail-md-vtsf.onrender.com/";
global.SESSION_ID = process.env.SESSION_ID || "" ;
module.exports = {
menu: process.env.MENU || "", /** Available @MENU @Schemes 1: Aztec_Md, 2: A17_Md, 3: Allen-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.2.9",
caption : process.env.CAPTION || "ยปโ๐โค๏ธโจโ๐จ๐ณ๐ณ๐ฌ๐ต ๐ถ๐ฉ๐ฌ๐น๐ถ๐ฐ๐ฐโจโ๐๐โยซ" , // ```ใ แดแดแดกแดสแดแด
สส sแดสแดษชสยฒยฒยน-แดแด
ใ```", //*ใsแดสsแดสษชสแด โข sแดสแดษชส แดแดแดสใ*\n youtube.com/@suhailtechinfo0"),
author : process.env.PACK_AUTHER|| "๐ซ๐๐๐ต๐ด-๐ฉ๐ฏ๐ป",
packname: process.env.PACK_NAME || "๐ฆ",
botname : process.env.BOT_NAME || "ยปโ๐โค๏ธโจโ๐จ๐ณ๐ณ๐ฌ๐ต ๐ถ๐ฉ๐ฌ๐น๐ถ๐ฐ๐ฐโจโ๐๐โยซ",
ownername:process.env.OWNER_NAME|| "ยปโ๐โค๏ธโจโ๐จ๐ณ๐ณ๐ฌ๐ต ๐ถ๐ฉ๐ฌ๐น๐ถ๐ฐ๐ฐโจโ๐๐โยซ",
errorChat : process.env.ERROR_CHAT || "",
KOYEB_API : process.env.KOYEB_API || "false",
REMOVE_BG_KEY : process.env.REMOVE_BG_KEY || "jy8U3ZFDxmVVhfUJzApQgdPc",
OPENAI_API_KEY: process.env.OPENAI_API_KEY || "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",
HEROKU_API_KEY: process.env.HEROKU_API_KEY || "",
HEROKU_APP_NAME:process.env.HEROKU_APP_NAME|| "",
antilink_values:process.env.ANTILINK_VALUES|| "all",
HEROKU: process.env.HEROKU_APP_NAME && process.env.HEROKU_API_KEY,
aitts_Voice_Id : process.env.AITTS_ID || "37",
ELEVENLAB_API_KEY: process.env.ELEVENLAB_API_KEY || "",
WORKTYPE: process.env.WORKTYPE||process.env.MODE || "private",
LANG: process.env.THEME ? process.env.THEME.toUpperCase() : "ยปโ๐โค๏ธโจโ๐จ๐ณ๐ณ๐ฌ๐ต ๐ถ๐ฉ๐ฌ๐น๐ถ๐ฐ๐ฐโจโ๐๐โยซ",
};
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); })
// ========================= [ Disables in V.1.2.8 ] ===============================\\
//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",