forked from DASTAGHIR/PRINCEMD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
188 lines (134 loc) · 5.37 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
import { watchFile, unwatchFile } from 'fs'
import chalk from 'chalk'
import { fileURLToPath } from 'url'
import fs from 'fs'
import cheerio from 'cheerio'
import fetch from 'node-fetch'
import axios from 'axios'
import moment from 'moment-timezone'
import dotenv from 'dotenv'
//💌------------------------------------------💌
//BETA: If you want to avoid typing the number that will be bot into the console, I added from here then:
//Only applies to option 2 (be a bot with an 8-digit text code)
global.botNumberCode = "" //Example: +923092668108
global.confirmCode = ""
//💌------------------------------------------💌
//💌global.pairingNumber = "" //put your bot number here💌
global.mods = ['923092668108']
global.prems = ['923092668108']
global.allowed = ['923092668108']
global.keysZens = ['c2459db922', '37CC845916', '6fb0eff124']
global.keysxxx = keysZens[Math.floor(keysZens.length * Math.random())]
global.keysxteammm = ['29d4b59a4aa687ca', '5LTV57azwaid7dXfz5fzJu', 'cb15ed422c71a2fb', '5bd33b276d41d6b4', 'HIRO', 'kurrxd09', 'ebb6251cc00f9c63']
global.keysxteam = keysxteammm[Math.floor(keysxteammm.length * Math.random())]
global.keysneoxrrr = ['5VC9rvNx', 'cfALv5']
global.keysneoxr = keysneoxrrr[Math.floor(keysneoxrrr.length * Math.random())]
global.lolkeysapi = "GataDiosV3"
global.itsrose = ['4b146102c4d500809da9d1ff']
global.baileys = '@whiskeysockets/baileys'
global.apis = 'https://delirius-apiofc.vercel.app'
global.openai_key = 'sk-...OzYy' /* Get your ApiKey at this link: https://platform.openai.com/account/api-keys */
global.openai_org_id = 'HITjoN7H8pCwoncEB9e3fSyW'
//💌------------------------------------------💌
//💌------------------------------------------💌
//CONFIG VARS. Do not touch them⚠️
global.vidcap = process.env.DL_MSG
//💌------------------------------------------💌
global.cheerio = cheerio
global.fs = fs
global.fetch = fetch
global.axios = axios
global.moment = moment
//💌------------------------------------------💌
// APIS
global.APIs = {
// API Prefix
// name: 'https://website'
xteam: 'https://api.xteam.xyz',
dzx: 'https://api.dhamzxploit.my.id',
lol: 'https://api.lolhuman.xyz',
violetics: 'https://violetics.pw',
neoxr: 'https://api.neoxr.my.id',
zenzapis: 'https://zenzapis.xyz',
akuari: 'https://api.akuari.my.id',
akuari2: 'https://apimu.my.id',
nrtm: 'https://fg-nrtm.ddns.net',
bg: 'http://bochil.ddns.net',
fgmods: 'https://api.fgmods.xyz'
}
// 💌------------------------------------------💌
//APIs keys
global.APIKeys = {
// APIKey Here
// 'https://website': 'apikey'
'https://api.fgmods.xyz': 'm2XBbNvz',
'https://api.xteam.xyz': 'd90a9e986e18778b',
'https://api.lolhuman.xyz': '85faf717d0545d14074659ad',
'https://api.neoxr.my.id': `${keysneoxr}`,
'https://violetics.pw': 'beta',
'https://zenzapis.xyz': `${keysxxx}`
}
//💌------------------------------------------💌
// Bot Images
global.imagen1 = fs.readFileSync("./lib/source/menus/img1.jpg")
global.imagen2 = fs.readFileSync("./lib/source/menus/img2.jpg")
//💌------------------------------------------💌
global.imag1 = fs.readFileSync("./lib/source/prn.png")
global.imag2 = fs.readFileSync("./lib/source/prn1.png")
global.imag3 = fs.readFileSync("./lib/source/prn2.jpg")
global.pimg = [imag1, imag2, imag3]
// Randome
global.princeImg = [imagen1, imagen2]
//💌------------------------------------------💌
// Moderator
//Change to false to use the Bot from the same number as the Bot.
global.isBaileysFail = false
global.developer = 'https://wa.me/message/DCAK67ON3XVOG1' //contact
//💌------------------------------------------💌
//Sticker WM
global.wm = process.env.BOT_NAME
global.botname = process.env.BOT_NAME
global.princebot = '🛡️𝘗𝘙𝘐𝘕𝘊𝘌-𝘉𝘖𝘛-𝘔𝘋🛡️'
global.packname = process.env.PACK_NAME
global.author = 'Prince♥️'
global.princeig = 'https://www.instagram.com'
global.princegp = 'https://whatsapp.com/channel/0029VaKNbWkKbYMLb61S1v11'
global.menuvid = 'https://i.imgur.com/GFAAXqw.mp4'
global.Princesc = 'https://github.com/PRINCE-GDS/THE-PRINCE-BOT'
global.princeyt = 'https://youtube.com/'
global.Princelog = 'https://i.imgur.com/cUvIv5w.jpeg'
global.thumb = fs.readFileSync('./lib/source/Prince.png')
//💌------------------------------------------💌
//Reactions
global.wait = '*`⏰ 𝙷𝚘𝚕𝚍 𝙾𝚗 𝙿𝚛𝚘𝚌𝚎𝚜𝚜𝚒𝚗𝚐...`*'
global.imgs = '*🖼️ _𝙶𝙴𝚃𝚃𝙸𝙽𝙶 𝚈𝙾𝚄𝚁 ɪᴍᴀɢᴇs 𝚆𝙰𝙸𝚃..._*\n*▰▰▰▱▱▱▱▱*'
global.rwait = '♻️'
global.dmoji = '🤭'
global.done = '✅'
global.error = '❌'
global.xmoji = '🌀'
global.multiplier = 69
global.maxwarn = '2'
global.eror = '```404 error```'
//💌------------------------------------------💌
dotenv.config()
const ownervb = process.env.OWNER_NUMBER;
if (!ownervb){
throw new Error("OWNER_NUMBER var env is not set please set it e.g 923092668108,Prince");
}
const ownerlist = ownervb.split(',');
global.owner = [];
for (let i = 0; i < ownerlist.length; i += 2) {
const owner = [
ownerlist[i],
ownerlist[i + 1],
true
];
global.owner.push(owner);
}
let file = fileURLToPath(import.meta.url)
watchFile(file, () => {
unwatchFile(file)
console.log(chalk.redBright("Update 'config.js'"))
import(`${file}?update=${Date.now()}`)
})