forked from Fujikaze-njn/Queen_Alya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
77 lines (75 loc) · 6.25 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
//#ENJOY
const fs = require("fs-extra");
if (fs.existsSync(".env"))
require("dotenv").config({ path: __dirname + "/.env" });
global.audio = "www.youtube.com";
global.video = "www.youtube.com";
global.port = process.env.PORT;
global.appUrl = process.env.APP_URL || "";
global.email = "kingdavid23565@gmail.com";
global.location = "Lagos, Nigeria";
global.mongodb = process.env.MONGODB_URI || "mongodb+srv://astrofx0011:astro@cluster0.lmwnxdt.mongodb.net/?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/Lagos";
global.github = process.env.GITHUB || "https://github.com/STAR-KING0/Queen_Alya";
global.gurl = process.env.GURL || "https://whatsapp.com/channel/0029VaeW5Tw4yltQOYIO5E2D";
global.website = process.env.GURL || "https://whatsapp.com/channel/0029VaeW5Tw4yltQOYIO5E2D";
global.THUMB_IMAGE = process.env.THUMB_IMAGE || process.env.IMAGE || "https://telegra.ph/file/b065f0f673cae5452c358.jpg";
global.devs = "2348100835767";
global.sudo = process.env.SUDO || "2348100835767";
global.owner = process.env.OWNER_NUMBER || "2348100835767";
global.style = process.env.STYLE || "3";
global.gdbye = process.env.GOODBYE || "false";
global.wlcm = process.env.WELCOME || "false";
global.warncount = process.env.WARN_COUNT || 3;
global.disablepm = process.env.DISABLE_PM || "false";
global.disablegroup = process.env.DISABLE_GROUPS || "false",
global.MsgsInLog = process.env.MSGS_IN_LOG || "false";
global.userImages = process.env.USER_IMAGES || "https://i.imgur.com/Y0pLkKX.jpeg";
global.waPresence = process.env.WAPRESENCE || "available";
global.readcmds = process.env.READ_COMMAND || "false";
global.readmessage = process.env.READ_MESSAGE || "false";
global.readmessagefrom = process.env.READ_MESSAGE_FROM || "";
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 || "";
global.read_status_from = process.env.READ_STATUS_FROM || "";
global.api_smd = "https://api-smd-1.vercel.app";
global.scan = "https://arthur-scanner.onrender.com/";
global.SESSION_ID =
process.env.SESSION_ID ||
"eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiTUpFOUZGbnlBZVZnMEc5a2o2OUNrNm1OVnVoTGZOaVBhUDVmeS82bVUzST0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiTjVpYUhrZVVnbmU2ay9oY3hVbmliYzdiNlNoRWR4QXMwWFRJRU9kZXAyTT0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIjp7InByaXZhdGUiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJxSkdHbGpHNkV3ZkpGc0RmZFNLZzVXV1ArcWRDYjFXd0lFOHBiTGJkNzBJPSJ9LCJwdWJsaWMiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJOcUFXc00zYWQ4Q1lZSTkvczI5alE1c2tQSUpsc24wQUhIWnRwQllwcnhjPSJ9fSwic2lnbmVkSWRlbnRpdHlLZXkiOnsicHJpdmF0ZSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IjJGaVlrNnlyOUYxcVNPaUVLODVHbTY2anpGQ1dNMjRhd2tONGJJQjlRMzg9In0sInB1YmxpYyI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6InAxbXcrWktEQjJBKy9mSERBRFZtSjVU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nTlZOSVdyazhnWDFYcDR3PSJ9LCJyZWdpc3RyYXRpb24iOnt9LCJwYWlyaW5nQ29kZSI6Ik5DUVdZVlpBIiwibWUiOnsiaWQiOiIyMzQ4MTAwODM1NzY3OjkxQHMud2hhdHNhcHAubmV0IiwibmFtZSI6IktpbmcifSwiYWNjb3VudCI6eyJkZXRhaWxzIjoiQ0p6Mmdyd0dFSnJnMHJZR0dBRWdBQ2dBIiwiYWNjb3VudFNpZ25hdHVyZUtleSI6Ilpuc0dZZUpxWVAvNnBjeWRpS0k1QzJhY3VFdVU2TW9iZUhPRW85YVVHek09IiwiYWNjb3VudFNpZ25hdHVyZSI6IndTa3N4UHJTbnFwV3V5eW0rTWdZbXRidmp4Q3lwTERUUDM1bXd3aDN3WHI3ZVg1RVdVM2tvbVZTekx4aXdyZk9HLzBlT1NyWFZUaFBjK1VuZHVycUNRPT0iLCJkZXZpY2VTaWduYXR1cmUiOiJVZURkNzdBdlJlOTJTbW5TTUVMNWErQTA1UzBYK1Nvck5LMWNlbGdKYjB3S2FqQytnaFUvUGpYUU5ZczFVY2lZb2xBeEdXUTFhU1pSM3RzZE1ITFVCZz09In0sInNpZ25hbElkZW50aXRpZXMiOlt7ImlkZW50aWZpZXIiOnsibmFtZSI6IjIzNDgxMDA4MzU3Njc6OTFAcy53aGF0c2FwcC5uZXQiLCJkZXZpY2VJZCI6MH0sImlkZW50aWZpZXJLZXkiOnsidHlwZSI6IkJ1ZmZlciIsImRhdGEiOiJCV1o3Qm1IaWFtRC8rcVhNbllpaU9RdG1uTGhMbE9qS0czaHpoS1BXbEJzeiJ9fV0sInBsYXRmb3JtIjoic21iYSIsImxhc3RBY2NvdW50U3luY1RpbWVzdGFtcCI6MTcyNTIxNDc1OCwibXlBcHBTdGF0ZUtleUlkIjoiQUFBQUFFV0QifQ=="
module.exports = {
menu: process.env.MENU || "2",
HANDLERS: process.env.PREFIX || ".",
BRANCH: process.env.BRANCH || "main",
VERSION: process.env.VERSION || "1.0.0",
caption: process.env.CAPTION || "`QUEEN_ALYA™`",
author: process.env.PACK_AUTHER || "QUEEN_ALYA",
packname: process.env.PACK_NAME || "A L Y A",
botname: process.env.BOT_NAME || "QUEEN_ALYA",
ownername: process.env.OWNER_NAME || "STAR KING",
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 || "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 || "A L Y A").toUpperCase(),
};
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);
});