-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappearance.js
19183 lines (17802 loc) · 794 KB
/
appearance.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
require('./all/settings')
const { WA_DEFAULT_EPHEMERAL, getAggregateVotesInPollMessage, generateWAMessageFromContent, proto, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, downloadContentFromMessage, areJidsSameUser, getContentType } = require("@whiskeysockets/baileys")
require("./all/global")
const { smsg, tanggal, getTime, isUrl, sleep, clockString, runtime, fetchJson, getBuffer, jsonformat, format, parseMention, getRandom, getGroupAdmins } = require('./all/myfunc')
// read database
const fs = require('fs')
const util = require('util')
const chalk = require('chalk')
const os = require('os')
const axios = require('axios')
const fsx = require('fs-extra')
const crypto = require('crypto')
const ffmpeg = require('fluent-ffmpeg')
const moment = require('moment-timezone')
const { JSDOM } = require('jsdom')
const { color, bgcolor } = require('./all/color')
const { uptotelegra } = require('./all/upload')
const thumb = fs.readFileSync ('./thumb.png')
const pengguna = JSON.parse(fs.readFileSync('./all/database/owner.json'))
const isPremium = JSON.parse(fs.readFileSync('./all/database/premium.json'))
const isUser = pengguna.includes(m.sender)
module.exports = async (Biiofc, m, store) => {
try {
const from = m.key.remoteJid
const quoted = m.quoted ? m.quoted : m
const body = (m.mtype === 'conversation' && m.message.conversation) ? m.message.conversation : (m.mtype == 'imageMessage') && m.message.imageMessage.caption ? m.message.imageMessage.caption : (m.mtype == 'documentMessage') && m.message.documentMessage.caption ? m.message.documentMessage.caption : (m.mtype == 'videoMessage') && m.message.videoMessage.caption ? m.message.videoMessage.caption : (m.mtype == 'extendedTextMessage') && m.message.extendedTextMessage.text ? m.message.extendedTextMessage.text : (m.mtype == 'buttonsResponseMessage' && m.message.buttonsResponseMessage.selectedButtonId) ? m.message.buttonsResponseMessage.selectedButtonId : (m.mtype == 'templateButtonReplyMessage') && m.message.templateButtonReplyMessage.selectedId ? m.message.templateButtonReplyMessage.selectedId : ''
const budy = (typeof m.text == 'string' ? m.text : '')
const prefix = /^[°zZ#$@+,.?=''():√%!¢£¥€π¤ΠΦ&><`™©®Δ^βα¦|/\\©^]/.test(body) ? body.match(/^[°zZ#$@+,.?=''():√%¢£¥€π¤ΠΦ&><!`™©®Δ^βα¦|/\\©^]/gi) : '.'
const isCmd = body.startsWith(prefix)
const command = isCmd ? body.slice(prefix.length).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 text = q = args.join(" ")
const isGroup = from.endsWith('@g.us')
const DigitalOcean = require('digitalocean');
const botNumber = await Biiofc.decodeJid(Biiofc.user.id)
const sender = m.key.fromMe ? (Biiofc.user.id.split(':')[0]+'@s.whatsapp.net' || Biiofc.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 Biiofc.groupMetadata(m.chat).catch(e => {}) : ''
const groupName = isGroup ? 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 isAdmins = isGroup ? groupAdmins.includes(sender) : false
const API_TOKEN = global.apitokendo;
const LINODE_API_TOKEN = global.apilinode;
const tanggal = moment.tz('Asia/Jakarta').format('DD/MM/YY')
const jam = moment.tz('asia/jakarta').format("HH:mm:ss");
const hariini = moment.tz("Asia/Jakarta").format("dddd, DD MMMM YYYY");
const ffstalk = require('./scrape/ffstalk')
const scp1 = require('./scrape/scraper')
const { Client } = require('ssh2');
const dns = require('dns');
const { addSaldo, minSaldo, cekSaldo, cekKoinPerak } = require("./all/database/deposit");
const { status, order_id, number, SMS } = JSON.parse(fs.readFileSync("./freya/status.json"))
const { remini } = require('./freya/remini')
const jsobfus = require('javascript-obfuscator')
const { mediafireDl } = require('./all/database/mediafire.js')
const db_user = JSON.parse(fs.readFileSync('./freya/user.json'))
let db_saldo = JSON.parse(fs.readFileSync("./all/database/saldo.json"));
const pengguna = JSON.parse(fs.readFileSync('./database/user.json'))
const pler = JSON.parse(fs.readFileSync('./all/database/idgrup.json').toString())
const jangan = m.isGroup ? pler.includes(m.chat) : false
//antilink
let antipromosi = JSON.parse(fs.readFileSync('./database/antipromosi.json'))
let autojpm = JSON.parse(fs.readFileSync('./database/autojpm.json'))
let antivirus = JSON.parse(fs.readFileSync('./database/antivirus.json'))
let antitoxic = JSON.parse(fs.readFileSync('./database/antitoxic.json'))
let antiwame = JSON.parse(fs.readFileSync('./database/antiwame.json'))
let antilinkgc =JSON.parse(fs.readFileSync('./database/antilinkgc.json'))
let antilinkall =JSON.parse(fs.readFileSync('./database/antilinkall.json'))
let antilinktwitter =JSON.parse(fs.readFileSync('./database/antilinktwitter.json'))
let antilinktiktok =JSON.parse(fs.readFileSync('./database/antilinktiktok.json'))
let antilinktelegram =JSON.parse(fs.readFileSync('./database/antilinktelegram.json'))
let antilinkfacebook =JSON.parse(fs.readFileSync('./database/antilinkfacebook.json'))
let antilinkinstagram =JSON.parse(fs.readFileSync('./database/antilinkinstagram.json'))
let antilinkytchannel =JSON.parse(fs.readFileSync('./database/antilinkytchannel.json'))
let antilinkytvideo =JSON.parse(fs.readFileSync('./database/antilinkytvideo.json'))
//sewainbot
let sewa = {
rizalxdzzdev1: { nama: "1 Hari", harga: 5000, id: "rizalxdzzdev1" },
rizalxdzzdev2: { nama: "3 HARI", harga: 15000, id: "rizalxdzzdev2" },
rizalxdzzdev3: { nama: "5 HARI", harga: 25000, id: "rizalxdzzdev3" },
rizalxdzzdev4: { nama: "7 HARI", harga: 45000, id: "rizalxdzzdev4" },
rizalxdzzdev5: { nama: "10 HARI", harga: 55000, id: "rizalxdzzdev5" },
rizalxdzzdev6: { nama: "14 HARI", harga: 65000, id: "rizalxdzzdev6" },
rizalxdzzdev7: { nama: "21 HARI", harga: 75000, id: "rizalxdzzdev7" },
rizalxdzzdev8: { nama: "30 HARI", harga: 85000, id: "rizalxdzzdev8" },
rizalxdzzdev9: { nama: "UNLIMITED", harga: 95000, id: "rizalxdzzdev10" },
};
// LIST GG RIZAL STORE GMG BROH AOWKWOWKW
// *⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST MOBILELEGENDS ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let ml = {
ML3: { nama: "MOBILELEGEND - 3 Diamond", harga: 1500, id: "ML3" },
ML5: { nama: "MOBILELEGEND - 5 Diamond", harga: 1700, id: "ML5" },
ML11: { nama: "MOBILELEGEND - 11 Diamond", harga: 2900, id: "ML11" },
ML10: { nama: "MOBILELEGEND - 10 Diamond", harga: 3000, id: "ML10" },
ML12: { nama: "MOBILELEGEND - 12 Diamond", harga: 3500, id: "ML12" },
ML14: { nama: "MOBILELEGEND - 14 Diamond", harga: 3600, id: "ML14" },
ML15: { nama: "MOBILELEGEND - 15 Diamond", harga: 4500, id: "ML15" },
ML17: { nama: "MOBILELEGEND - 17 Diamond", harga: 4700, id: "ML17" },
ML19: { nama: "MOBILELEGEND - 19 Diamond", harga: 5400, id: "ML19" },
ML22: { nama: "MOBILELEGEND - 22 Diamond", harga: 5500, id: "ML22" },
ML20: { nama: "MOBILELEGEND - 20 Diamond", harga: 6000, id: "ML20" },
ML28: { nama: "MOBILELEGEND - 28 Diamond", harga: 7000, id: "ML28" },
};
/*⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST DANA ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let dana = {
DANA1: { nama: "DANA 1.000", harga: 2000, id: "DANA1" },
DANA2: { nama: "DANA 2.000", harga: 3000, id: "DANA2" },
DANA3: { nama: "DANA 3.000", harga: 4000, id: "DANA3" },
DANA4: { nama: "DANA 4.000", harga: 5000, id: "DANA4" },
DANA5: { nama: "DANA 5.000", harga: 6000, id: "DANA5" },
DANA6: { nama: "DANA 6.000", harga: 7000, id: "DANA6" },
DANA7: { nama: "DANA 7.000", harga: 8000, id: "DANA7" },
DANA8: { nama: "DANA 8.000", harga: 9000, id: "DANA8" },
DANA9: { nama: "DANA 9.000", harga: 10000, id: "DANA9" },
DANA10: { nama: "DANA 10.000", harga: 11000, id: "DANA10" },
DANA11: { nama: "DANA 11.000", harga: 12000, id: "DANA11" },
DANA12: { nama: "DANA 12.000", harga: 13000, id: "DANA12" },
DANA13: { nama: "DANA 13.000", harga: 14000, id: "DANA13" },
DANA14: { nama: "DANA 14.000", harga: 15000, id: "DANA14" },
DANA15: { nama: "DANA 15.000", harga: 16000, id: "DANA15" },
};
/*⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST GOPAY ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let gopay = {
GOPAY1: { nama: "SALDO GOPAY 1.000", harga: 2500, id: "GOPAY1" },
GOPAY2: { nama: "SALDO GOPAY 2.000", harga: 3500, id: "GOPAY2" },
GOPAY3: { nama: "SALDO GOPAY 3.000", harga: 4500, id: "GOPAY3" },
GOPAY4: { nama: "SALDO GOPAY 4.000", harga: 5500, id: "GOPAY4" },
GOPAY5: { nama: "SALDO GOPAY 5.000", harga: 6500, id: "GOPAY5" },
GOPAY6: { nama: "SALDO GOPAY 6.000", harga: 7500, id: "GOPAY6" },
GOPAY7: { nama: "SALDO GOPAY 7.000", harga: 8500, id: "GOPAY7" },
GOPAY8: { nama: "SALDO GOPAY 8.000", harga: 9500, id: "GOPAY8" },
GOPAY9: { nama: "SALDO GOPAY 9.000", harga: 10500, id: "GOPAY9" },
GOPAY10: { nama: "SALDO GOPAY 10.000", harga: 11500, id: "GOPAY10" },
};
/*⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST OVO ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let ovo = {
OVO5: { nama: "SALDO OVO 5.000", harga: 6000, id: "OVO5" },
OVO10: { nama: "SALDO OVO 10.000", harga: 11500, id: "OVO10" },
OVO15: { nama: "SALDO OVO 15.000", harga: 16500, id: "OVO15" },
OVO20: { nama: "SALDO OVO 20.000", harga: 21500, id: "OVO20" },
OVO25: { nama: "SALDO OVO 25.000", harga: 26500, id: "OVO25" },
OVO30: { nama: "SALDO OVO 30.000", harga: 31500, id: "OVO30" },
};
/*⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST PUBG MOBILE ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let pubg = {
PUBG15: { nama: "PUBG MOBILE 15 UC", harga: 3000, id: "PUBG15" },
PUBG16: { nama: "PUBG MOBILE 16 UC", harga: 3200, id: "PUBG" },
PUBG25: { nama: "PUBG MOBILE 25 UC", harga: 4500, id: "PUBG" },
PUBG26: { nama: "PUBG MOBILE 26 UC", harga: 5200, id: "PUBG" },
};
/*⫹⫺ ╳╶╼╶╶╶╶┈ ⎝ LIST FREE FIRE ⎞ ┈╴╴╴╴╾╴╳ ⫹⫺*/
let ff = {
FF5: { nama: "5 Diamond Free Fire", harga: 1000, id: "FF5" },
FF10: { nama: "10 Diamond Free Fire", harga: 2000, id: "FF10" },
FF12: { nama: "12 Diamond Free Fire", harga: 2100, id: "FF12" },
FF15: { nama: "15 Diamond Free Fire", harga: 2500, id: "FF15" },
FF20: { nama: "20 Diamond Free Fire", harga: 3300, id: "FF20" },
FF25: { nama: "25 Diamond Free Fire", harga: 4000, id: "FF25" },
FF30: { nama: "30 Diamond Free Fire", harga: 5000, id: "FF30" },
FF40: { nama: "40 Diamond Free Fire", harga: 5555, id: "FF40" },
FF50: { nama: "50 Diamond Free Fire", harga: 6233, id: "FF50" },
FF55: { nama: "55 Diamond Free Fire", harga: 7000, id: "FF55" },
FF60: { nama: "60 Diamond Free Fire", harga: 7700, id: "FF60" },
FF70: { nama: "70 Diamond Free Fire", harga: 9000, id: "FF70" },
FF75: { nama: "75 Diamond", harga: 9300, id: "FF75" },
FF90: { nama: "90 Diamond", harga: 11500, id: "FF90" },
};
//user
let cekUser = (satu, dua) => {
let x1 = false
Object.keys(db_user).forEach((i) => {
if (db_user[i].id == dua){x1 = i}})
if (x1 !== false) {
if (satu == "id"){ return db_user[x1].id }
if (satu == "name"){ return db_user[x1].name }
if (satu == "seri"){ return db_user[x1].seri }
if (satu == "premium"){ return db_user[x1].premium }
}
if (x1 == false) { return null }
}
//setuser
let setUser = (satu, dua, tiga) => {
Object.keys(db_user).forEach((i) => {
if (db_user[i].id == dua){
if (satu == "±id"){ db_user[i].id = tiga
fs.writeFileSync('./riza/user.json', JSON.stringify(db_user))}
if (satu == "±name"){ db_user[i].name = tiga
fs.writeFileSync('./rizal/user.json', JSON.stringify(db_user))}
if (satu == "±seri"){ db_user[i].seri = tiga
fs.writeFileSync('./rizal/user.json', JSON.stringify(db_user))}
if (satu == "±premium"){ db_user[i].premium = tiga
fs.writeFileSync('./rizal/user.json', JSON.stringify(db_user))}
}})
}
const checkIdSewa = (userId) => {
const deppo = JSON.parse(fs.readFileSync(`./freya/sewa/${from}.json`))
let status = false;
Object.keys(deppo).forEach((i) => {
if (deppo[i].id === userId) {
status = true;
}
})
return status
}
const checkRefSewa = (userId) => {
const deppo = JSON.parse(fs.readFileSync(`./freya/sewa/${from}.json`))
let status = ''
Object.keys(deppo).forEach((i) => {
if (deppo[i].id === userId) {
status = deppo[i].ref
}
})
return status
}
const checkStsSewa = (userId) => {
const deppo = JSON.parse(fs.readFileSync(`./freya/sewa/${from}.json`))
let status = ''
Object.keys(deppo).forEach((i) => {
if (deppo[i].id === userId) {
status = deppo[i].status
}
})
return status
}
//BanUser
const banUser = await Biiofc.fetchBlocklist
// Auto Blocked Nomor +212
if (m.sender.startsWith('212')) return Biiofc.updateBlockStatus(m.sender, 'block')
// Random Color
const listcolor = ['red','green','yellow','blue','magenta','cyan','white']
const randomcolor = listcolor[Math.floor(Math.random() * listcolor.length)]
// Command Yang Muncul Di Console
if (isCmd) {
console.log(chalk.yellow.bgCyan.bold(namabot), color(`[ PESAN ]`, `${randomcolor}`), color(`FROM`, `${randomcolor}`), color(`${pushname}`, `${randomcolor}`), color(`Text :`, `${randomcolor}`), color(`${body}`, `white`))
}
//total fitur
const totalFitur = () =>{
var mytext = fs.readFileSync("./appearance.js").toString()
var numUpper = (mytext.match(/case '/g) || []).length;
return numUpper
}
// Database
const contacts = JSON.parse(fs.readFileSync("./all/database/contacts.json"))
const prem = JSON.parse(fs.readFileSync("./all/database/premium.json"))
const premm = JSON.parse(fs.readFileSync("./all/database/premiumm.json"))
const ownerNumber = JSON.parse(fs.readFileSync("./all/database/owner.json"))
// Cek Database
const isContacts = contacts.includes(sender)
const isPremium = prem.includes(sender)
const isPremiumm = premm.includes(sender)
const isOwner = ownerNumber.includes(senderNumber) || isBot
// Jangan Di Edit Tar Error
let list = []
for (let i of ownerNumber) {
list.push({
displayName: await Biiofc.getName(i + '@s.whatsapp.net'),
vcard: `BEGIN:VCARD\n
VERSION:3.0\n
N:${await Biiofc.getName(i + '@s.whatsapp.net')}\n
FN:${await Biiofc.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://bit.ly/39Ivus6\n
item3.X-ABLabel:YouTube\n
item4.ADR:;;Indonesia;;;;\n
item4.X-ABLabel:Region\n
END:VCARD`
})
}
//func makeid
const makeid = (length) => {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() *
charactersLength));
}
return result
}
function randomNomor(min, max = null) {
if (max !== null) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
} else {
return Math.floor(Math.random() * min) + 1
}
}
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 Biiofc.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'
}
// 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 })
Biiofc.relayMessage(jid, order.message, { messageId: order.key.id})
}
// Function Reply
const reply = (teks) => {
Biiofc.sendMessage(from, { text: teks, contextInfo: {
"externalAdReply": {
"showAdAttribution": true,
"title": " JarzTzy Bug🔥`",
"containsAutoReply": true,
"mediaType": 1,
"thumbnail": fkethmb,
"mediaUrl": "https://youtube.com/@-",
"sourceUrl": "https://youtube.com/@-" }}}, { quoted: m }) }
function generateRandomPassword() {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#%^&*';
const length = 10;
let password = '';
for (let i = 0; i < length; i++) {
const randomIndex = Math.floor(Math.random() * characters.length);
password += characters[randomIndex];
}
return password;
}
// Pastikan Anda memiliki API token yang valid dari DigitalOcean dan disimpan dalam variabel API_TOKEN
global.db = JSON.parse(fs.readFileSync('./database/database.json'))
if (global.db) global.db = {
sticker: {},
database: {},
game: {},
others: {},
users: {},
chats: {},
settings: {},
...(global.db || {})
}
//pickRandom
const pickRandom = (arr) => {
return arr[Math.floor(Math.random() * arr.length)]
}
// TEXT BANNED
const { textbanv1, textbanv2, textbanv3, textbanv4, textbanv5, textbanv6, textbanv7, textbanv8, textbanv9, textbanv10, textbanv11, textbanv12, textbanv13, textbanv14, textbanv15, textbanv16, textbanv17, textbanv18, textbanv19, textbanv20, textbanv21, textbanv22, textbanv23, textbanv24, textbanv25, textbanv26, textbanv27, textbanv28, textbanv29, textbanv30, textbanv31, textbanv32, textbanv33, textbanv34, textbanv35, textbanv36, textbanv37, textbanv38 } = require('./wangsap/textban.js')
// TEXT UNBANNED
const { textunbanv1, textunbanv2, textunbanv3, textunbanv4, textunbanv5, textunbanv6, textunbanv7, textunbanv8, textunbanv9, textunbanv10, textunbanv11, textunbanv12, textunbanv13, textunbanv14, textunbanv15, textunbanv16, textunbanv17, textunbanv18, textunbanv19, textunbanv20, textunbanv21 } = require('./wangsap/textunban.js')
// TEXT FAKE CHAT
const { fakec1, fakec2, fakec3, fakec4, fakec5, fakec6, fakec7, fakec8, fakec9, fakec10, fakec11 } = require('./wangsap/fakechat.js')
// TOTAL FITUR
const { totalfakechat, totalunban, totalban } = require('./wangsap/total.js')
// TEXT TOOLS
const { tools1, tools2 } = require('./wangsap/tools.js')
// SALDO BRIMO
const { saldoo } = require('./wangsap/saldoo.js')
//ssweb
const XeonStickWait = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/wait.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
const XeonStickAdmin = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/admin.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
const XeonStickBotAdmin = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/botadmin.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
const XeonStickOwner = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/owner.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
const XeonStickGroup = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/group.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
const XeonStickPrivate = () => {
let XeonStikRep = fs.readFileSync('./XeonMedia/theme/sticker_reply/private.webp')
Biiofc.sendMessage(from, { sticker: XeonStikRep }, { quoted: fkontak })
}
// fake quoted bug
const lep = {
key: {
fromMe: [],
participant: "[email protected]", ...(from ? { remoteJid: "" } : {})
},
'message': {
"stickerMessage": {
"url": "https://mmg.whatsapp.net/d/f/At6EVDFyEc1w_uTN5aOC6eCr-ID6LEkQYNw6btYWG75v.enc",
"fileSha256": "YEkt1kHkOx7vfb57mhnFsiu6ksRDxNzRBAxqZ5O461U=",
"fileEncSha256": "9ryK8ZNEb3k3CXA0X89UjCiaHAoovwYoX7Ml1tzDRl8=",
"mediaKey": "nY85saH7JH45mqINzocyAWSszwHqJFm0M0NvL7eyIDM=",
"mimetype": "image/webp",
"height": 40,
"width": 40,
"directPath": "/v/t62.7118-24/19433981_407048238051891_5533188357877463200_n.enc?ccb=11-4&oh=01_AVwXO525CP-5rmcfl6wgs6x9pkGaO6deOX4l6pmvZBGD-A&oe=62ECA781",
"fileLength": "99999999",
"mediaKeyTimestamp": "16572901099967",
'isAnimated': []
}}}
const hw = {
key: {
fromMe: false,
participant: `[email protected]`, ...(from ? { remoteJid: "status@broadcast" } : {})
},
"message": {
"audioMessage": {
"url": "https://mmg.whatsapp.net/v/t62.7114-24/56189035_1525713724502608_8940049807532382549_n.enc?ccb=11-4&oh=01_AdR7-4b88Hf2fQrEhEBY89KZL17TYONZdz95n87cdnDuPQ&oe=6489D172&mms3=true",
"mimetype": "audio/mp4",
"fileSha256": "oZeGy+La3ZfKAnQ1epm3rbm1IXH8UQy7NrKUK3aQfyo=",
"fileLength": "1067401",
"seconds": 60,
"ptt": true,
"mediaKey": "PeyVe3/+2nyDoHIsAfeWPGJlgRt34z1uLcV3Mh7Bmfg=",
"fileEncSha256": "TLOKOAvB22qIfTNXnTdcmZppZiNY9pcw+BZtExSBkIE=",
"directPath": "/v/t62.7114-24/56189035_1525713724502608_8940049807532382549_n.enc?ccb=11-4&oh=01_AdR7-4b88Hf2fQrEhEBY89KZL17TYONZdz95n87cdnDuPQ&oe=6489D172",
"mediaKeyTimestamp": "1684161893"
}}}
const fkontak = { key: {fromMe: false,participant: `[email protected]`, ...(from ? { remoteJid: "status@broadcast" } : {}) }, message: { 'contactMessage': { 'displayName': `᭖͜͡Jarz Offical`, 'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;BiiofcBot,;;;\nFN:${pushname},\nitem1.TEL;waid=${sender.split('@')[0]}:${sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`, 'jpegThumbnail': { url: 'https://telegra.ph/file/0fc4f6dbbc5d5f95ede6f.jpg' }}}}
function parseMention(text = '') {
return [...text.matchAll(/@([0-9]{5,16}|0)/g)].map(v => v[1] + '@s.whatsapp.net')
}
// Antipromosi
if (antipromosi)
if (budy.includes(`admin panel 5k`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/hayya`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antipromosi)
if (budy.includes(`admin panel 10k`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antipromosi)
if (budy.includes(`35k`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Wa.me Link Detected 」\`\`\`\n\n@${kice.split("@")[0]} Has been kicked because of sending wa.me link in this group`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antipromosi)
if (budy.includes(`25k`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antipromosi)
if (budy.includes(`40k`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Wa.me Link Detected 」\`\`\`\n\n@${kice.split("@")[0]} Has been kicked because of sending wa.me link in this group`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antipromosi)
if (budy.includes(`free`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
// auto jpm
if (autojpm) {
if (budy.match(`chat.whatsapp.com`)) {
if (!isBotAdmins) return reply(mess.only.badmin)
let gclink = (`https://chat.whatsapp.com/`+await Biiofc.groupInviteCode(m.chat))
let isLinkThisGc = new RegExp(gclink, 'i')
let isgclink = isLinkThisGc.test(m.text)
if (isgclink) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER SUKA BAGI BAGI VPS DAN ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
if (isAdmins) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER SUKA BAGI BAGI VPS DAN ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
if (!isOwner) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER SUKA BAGI BAGI VPS DAN ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
// Anti Link
if (antilinkgc) {
if (budy.match(`chat.whatsapp.com`)) {
if (!isBotAdmins) return reply(mess.only.badmin)
let gclink = (`https://chat.whatsapp.com/`+await Biiofc.groupInviteCode(m.chat))
let isLinkThisGc = new RegExp(gclink, 'i')
let isgclink = isLinkThisGc.test(m.text)
if (isgclink) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
if (isAdmins) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
if (!isOwner) return Biiofc.sendMessage(m.chat, {text: `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`})
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\n@${kice.split("@")[0]} https://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
// Antiwame by xeon
if (antiwame)
if (budy.includes(`wa.me`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
if (antiwame)
if (budy.includes(`wa.me/`)) {
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
kice = m.sender
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
} else {
}
//antivirus by xeon
if (antivirus) {
if (budy.length > 3500) {
if (!isBotAdmins) return reply(mess.only.badmin)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Virus Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending virus in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
}
}
//antilink youtube video by xeon
if (antilinkytvideo)
if (budy.includes("https://youtu.be/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 YoutTube Video Link Detected 」\`\`\`\n\nAdmin has sent a youtube video link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 YouTube Video Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending youtube video link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink youtube channel by xeon
if (antilinkytchannel)
if (budy.includes("https://youtube.com/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 YoutTube Channel Link Detected 」\`\`\`\n\nAdmin has sent a youtube channel link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 YouTube Channel Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending youtube channel link in this group`, contextInfo:{mentionedJid:[m.sendet]}}, {quoted:m})
} else {
}
//antilink instagram by xeon
if (antilinkinstagram)
if (budy.includes("https://www.instagram.com/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 Instagram Link Detected 」\`\`\`\n\nAdmin has sent a instagram link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Instagram Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending instagram link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink facebook by xeon
if (antilinkfacebook)
if (budy.includes("https://facebook.com/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 Facebook Link Detected 」\`\`\`\n\nAdmin has sent a facebook link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Facebook Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending facebook link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink telegram by xeon
if (antilinktelegram)
if (budy.includes("https://t.me/")){
if (antilinktelegram)
if (!isBotAdmins) return
bvl = `\`\`\`「 Telegram Link Detected 」\`\`\`\n\nAdmin has sent a telegram link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Telegram Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending telegram link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink tiktok by xeon
if (antilinktiktok)
if (budy.includes("https://www.tiktok.com/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 Tiktok Link Detected 」\`\`\`\n\nAdmin has sent a tiktok link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Tiktok Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending tiktok link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink twitter by xeon
if (antilinktwitter)
if (budy.includes("https://twitter.com/")){
if (!isBotAdmins) return
bvl = `\`\`\`「 Twitter Link Detected 」\`\`\`\n\nAdmin has sent a twitter link, admin is free to send any link😇`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`「 Tiktok Link Detected 」\`\`\`\n\n@${m.sender.split("@")[0]} Has been kicked because of sending twitter link in this group`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
//antilink all by xeon
if (antilinkall)
if (budy.includes("https://")){
if (!isBotAdmins) return
bvl = `\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\nhttps://chat.whatsapp.com/gadagctolol`
if (isAdmins) return reply(bvl)
if (m.key.fromMe) return reply(bvl)
if (!isOwner) return reply(bvl)
await Biiofc.sendMessage(m.chat,
{
delete: {
remoteJid: m.chat,
fromMe: false,
id: m.key.id,
participant: m.key.participant
}
})
Biiofc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
Biiofc.sendMessage(from, {text:`\`\`\`JOIN GUYS 850 MEMBER MAU BERBAGI VPS AND ADMIN PANEL\`\`\`\n\n@${m.sender.split("@")[0]} https://chat.whatsapp.com/gadagctolol`, contextInfo:{mentionedJid:[m.sender]}}, {quoted:m})
} else {
}
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)
}
})
}
const downloadMp4 = async (Link) => {
let gHz = require("./scrape/savefrom")
let Lehd = await gHz.savefrom(Link)
let ghd = await reSize(Lehd.thumb, 300, 300)
let ghed = await ytdl.getInfo(Link)
let gdyr = await Biiofc.sendMessage(from, {image: { url: Lehd.thumb } , caption: `Channel Name : ${ghed.player_response.videoDetails.author}
Channel Link : https://youtube.com/channel/${ghed.player_response.videoDetails.channelId}
Title : ${Lehd.meta.title}
Duration : ${Lehd.meta.duration}
Desc : ${ghed.player_response.videoDetails.shortDescription}`}, { quoted : m })
try {
await ytdl.getInfo(Link)
let mp4File = getRandom('.mp4')
console.log(color('Download Video With ytdl-core'))
let nana = ytdl(Link)
.pipe(fs.createWriteStream(mp4File))
.on('finish', async () => {
await Biiofc.sendMessage(from, { video: fs.readFileSync(mp4File), caption: mess.succes, gifPlayback: false }, { quoted: gdyr })
fs.unlinkSync(`./${mp4File}`)
})
} catch (err) {
reply(`${err}`)
}
}
const downloadMp3 = async (Link) => {
let pNx = require("./scrape/savefrom")
let Puxa = await pNx.savefrom(Link)
let MlP = await reSize(Puxa.thumb, 300, 300)
let PlXz = await ytdl.getInfo(Link)
let gedeyeer = await Biiofc.sendMessage(from, { image: { url: Puxa.thumb } , caption: `Channel Name : ${PlXz.player_response.videoDetails.author}
Channel Link : https://youtube.com/channel/${PlXz.player_response.videoDetails.channelId}
Title : ${Puxa.meta.title}
Duration : ${Puxa.meta.duration}
Desc : ${PlXz.player_response.videoDetails.shortDescription}`}, { quoted : m })
try {
await ytdl.getInfo(Link)
let mp3File = getRandom('.mp3')
console.log(color('Download Audio With ytdl-core'))
ytdl(Link, { filter: 'audioonly' })
.pipe(fs.createWriteStream(mp3File))
.on('finish', async () => {
await Biiofc.sendMessage(from, { audio: fs.readFileSync(mp3File), mimetype: 'audio/mp4' }, { quoted: gedeyeer })
fs.unlinkSync(mp3File)
})
} catch (err) {
reply(`${err}`)
}
}
let vote = db.others.vote = []
let teks_format =`*Berikut ini cara order kode otp*
_Example_
.order id
_Contoh_
.order 14
untuk melihat id layanan
silahkan ketik .layanan`
let teks_format2 = `Format Salah !!
_Example_
.getorder <order_id>
_Contoh_
.getorder 55778888
`
Biiofc.readMessages([m.key])
switch (command) {
case "menu": case "jarz": case "jarztun": case "ayang": case "jarztunnel": case "jarzz": case "al": case "woks": {
if (cekUser("id", sender) == null) return Biiofc.sendMessage(from, { text: `Maaf *@${sender.split('@')[0]}*, sepertinya kamu blom terdaftar di database Silahkan daftar terlebih dahulu sebelum ${command}`, mentions: [sender]}, { quoted:m})
if (!isOwner) return reply(mess.only.user)
const owned = `${owner}@s.whatsapp.net`
const version = require("baileys/package.json").version