-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathabilbotz.js
More file actions
2762 lines (2583 loc) ยท 121 KB
/
Copy pathabilbotz.js
File metadata and controls
2762 lines (2583 loc) ยท 121 KB
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
/* BASE = ABIL
SCRIPT ORI = ABIL
RECODE = ABIL
*/
/* SCRIPT INI FREE JADI JANGAN DIJUAL GW MASIH BLJAR JADI JANGAN DI HINA GW MANUSIA YANG MASIH PERLU BANYAK BLJAR KALAU ADA FITUR YG ERROR / PENGEN REQUEST FITUR ATAU TAMPILAN MENU BISA CHAT GW DI WA AJA
*/
/* YOUTUBE = ABIL BOTZ
WHATSAPP = https://wa.me/6282293295376
GITHUB = github.com/AbilBotz
*/
// GK SEMUA BIKINAN GW ADA YG COPAS HEHEHEHE ๐ฟ
// APIKEYNYA? LOGIN AJA DI WEB LOLHUNAN AMA ZEKS.ME BUAT DAPETIN
// DONASI? CHAT GW
//_____________THANKS TO DI PALING BAWAH SC_____________//
const
{
WAConnection,
MessageType,
Presence,
MessageOptions,
Mimetype,
WALocationMessage,
WA_MESSAGE_STUB_TYPES,
WA_DEFAULT_EPHEMERAL,
ReconnectMode,
ProxyAgent,
GroupSettingChange,
waChatKey,
mentionedJid,
processTime,
} = require("@adiwajshing/baileys")
const fs = require("fs")
const axios = require('axios')
const speed = require("performance-now")
const util = require('util')
const crypto = require('crypto')
const request = require('request')
const { exec, spawn } = require('child_process')
const fetch = require('node-fetch')
const moment = require('moment-timezone')
const ffmpeg = require('fluent-ffmpeg')
const { removeBackgroundFromImageFile } = require('remove.bg')
const imgbb = require('imgbb-uploader');
const client = new WAConnection()
const qrcode = require('qrcode-terminal')
const qrkode = require("qrcode")
const toMs = require('ms')
const ms = require('parse-ms')
const os = require('os');
const { fetchJosn, fetchText, kyun } = require('./lib/fetcher')
//---Lib---//
const { color, bgcolor } = require('./lib/color')
const { antiSpam } = require('./lib/antispam')
const { mess } = require('./message/mess')
const { wait, getBuffer, h2k, generateMessageID, getGroupAdmins, getRandom, start, info, success, close } = require('./lib/functions')
const premium = require('./lib/premium');
const setGelud = require('./lib/gameGelud.js')
const simple = require('./lib/simple.js')
//---Settings---//
let botname = '_๏ฝข AbilBotz 0.2 ๏ฝฃ ๅฌ_' //NAMA BOT
let lolkey = 'Modal' //Ganti Pake Api Lu Sendiri Biar Limitnya Gak Cepet Abis , Login Di api.lolhuman.xzy Untuk Mendapatkan Api Gratis
let zekskey = 'Modal' // Ganti Pake Api Lu Sendiri Biar Limitnya Gak Cepet Abis , Login Di zeks.me Untuk Mendapatkan Api Gratis
let ownername = '_๏ฝข AbilGanz โ ๏ฝฃ_' //NAMA OWNER
let owner = '6282293295376' // NOMOR OWNER
let symbol = '*ๅฌ*'
let faketeks = `*_๏ฝข AbilBotz 0.2 ๏ฝฃ ๅฌ_*`
//---Donasi---//
let ovo = 'http://bit.ly/qrovo'
let gopay = 'http://bit.ly/qrgopay'
let allpay = 'http://bit.ly/Allpay'
banChats = true;
readGc = true;
readPc = true;
autovn = false;
autoketik = true;
let hit_today = []
let tttawal= ["0๏ธโฃ","1๏ธโฃ","2๏ธโฃ","3๏ธโฃ","4๏ธโฃ","5๏ธโฃ","6๏ธโฃ","7๏ธโฃ","8๏ธโฃ","9๏ธโฃ"]
let ky_ttt = []
//---Data--//
let _registered = JSON.parse(fs.readFileSync('./database/registered.json'))
let register = JSON.parse(fs.readFileSync('./database/registered.json'))
let _premium = JSON.parse(fs.readFileSync('./database/premium.json'));
let ban = JSON.parse(fs.readFileSync('./database/banned.json'))
let absen = JSON.parse(fs.readFileSync('./database/absen.json'))
let antilink = JSON.parse(fs.readFileSync('./database/antilink.json'))
let antivirtex = JSON.parse(fs.readFileSync('./database/antivirtex.json'))
//---ModuleExport---//
module.exports = abilbotz = async (abilbotz, mek, _welkom) => {
try {
if (!mek.hasNewMessage) return
mek = mek.messages.all()[0]
if (!mek.message) return
if (mek.key && mek.key.remoteJid == 'status@broadcast') return
global.ky_ttt
global.blocked
mek.message = (Object.keys(mek.message)[0] === 'ephemeralMessage') ? mek.message.ephemeralMessage.message : mek.message
const content = JSON.stringify(mek.message)
const from = mek.key.remoteJid
const { text, extendedText, contact, contactsArray, groupInviteMessage, listMessage, buttonsMessage, location, liveLocation, image, video, sticker, document, audio, product, quotedMsg } = MessageType
const time = moment.tz('Asia/Jakarta').format('DD/MM HH:mm:ss')
const type = Object.keys(mek.message)[0]
const cmd = (type === 'conversation' && mek.message.conversation) ? mek.message.conversation : (type == 'imageMessage') && mek.message.imageMessage.caption ? mek.message.imageMessage.caption : (type == 'videoMessage') && mek.message.videoMessage.caption ? mek.message.videoMessage.caption : (type == 'extendedTextMessage') && mek.message.extendedTextMessage.text ? mek.message.extendedTextMessage.text : ''.slice(1).trim().split(/ +/).shift().toLowerCase()
const prefix = /^[ยฐโขฯรทรยถโยฃยขโฌยฅยฎโข=|~!#$%^&.?/\\ยฉ^z+*@,;]/.test(cmd) ? cmd.match(/^[ยฐโขฯรทรยถโยฃยขโฌยฅยฎโข=|~!#$%^&.?/\\ยฉ^z+*,;]/gi) : '.'
body = (type === 'conversation' && mek.message.conversation.startsWith(prefix)) ? mek.message.conversation : (type == 'imageMessage') && mek.message[type].caption.startsWith(prefix) ? mek.message[type].caption : (type == 'videoMessage') && mek.message[type].caption.startsWith(prefix) ? mek.message[type].caption : (type == 'extendedTextMessage') && mek.message[type].text.startsWith(prefix) ? mek.message[type].text : (type == 'listResponseMessage') && mek.message[type].singleSelectReply.selectedRowId ? mek.message[type].singleSelectReply.selectedRowId : (type == 'buttonsResponseMessage') && mek.message[type].selectedButtonId ? mek.message[type].selectedButtonId : ''
budy = (type === 'conversation') ? mek.message.conversation : (type === 'extendedTextMessage') ? mek.message.extendedTextMessage.text : ''
const command = body.slice(1).trim().split(/ +/).shift().toLowerCase()
const args = body.trim().split(/ +/).slice(1)
const isCmd = body.startsWith(prefix)
const q = args.join(' ')
const Verived = "0@s.whatsapp.net"
const ytabilbotz = "6282293295376@s.whatsapp.net"
const txt = mek.message.conversation
const botNumber = abilbotz.user.jid
const ownerNumber = [`${owner}@s.whatsapp.net`, `6282293295376@s.whatsapp.net`, `6282293295376@s.whatsapp.net`]
const isGroup = from.endsWith('@g.us')
const sender = isGroup ? mek.participant : mek.key.remoteJid
const totalchat = await abilbotz.chats.all()
const groupMetadata = isGroup ? await abilbotz.groupMetadata(from) : ''
const groupName = isGroup ? groupMetadata.subject : ''
const groupId = isGroup ? groupMetadata.jid : ''
const groupMembers = isGroup ? groupMetadata.participants : ''
const groupDesc = isGroup ? groupMetadata.desc : ''
const groupOwner = isGroup ? groupMetadata.owner : ''
const groupAdmins = isGroup ? getGroupAdmins(groupMembers) : ''
const isBotGroupAdmins = groupAdmins.includes(botNumber) || false
const isGroupAdmins = groupAdmins.includes(sender) || false
const isRegister = register.includes(sender)
const isBanned = ban.includes(sender)
const isPremium = premium.checkPremiumUser(sender, _premium)
const c = args.join(' ')
const m = simple.smsg(abilbotz, mek)
const isListMsg = (type == 'listResponseMessage')
const conts = mek.key.fromMe ? abilbotz.user.jid : abilbotz.contacts[sender] || { notify: jid.replace(/@.+/, '') }
const pushname = mek.key.fromMe ? abilbotz.user.name : conts.notify || conts.vname || conts.name || '-'
const isAntiLink = isGroup ? antilink.includes(from) : false
const isWelkom = isGroup ? _welkom.includes(from) : false
const isAntiVirtex = isGroup ? antivirtex.includes(from) : false
idttt = []
players1 = []
players2 = []
gilir = []
for (let t of ky_ttt){
idttt.push(t.id)
players1.push(t.player1)
players2.push(t.player2)
gilir.push(t.gilir)
}
const isTTT = isGroup ? idttt.includes(from) : false
isPlayer1 = isGroup ? players1.includes(sender) : false
isPlayer2 = isGroup ? players2.includes(sender) : false
const isOwner = ownerNumber.includes(sender)
const arg = budy.slice(command.length + 2, budy.length)
try{
hit_total = await fetchJson('https://api.countapi.xyz/hit/api-alphabot.herokuapp.com/visits')
} catch {
hit_total = {
value : "-"
}
}
hitall = `${hit_total.value}`
const Wib = moment().utcOffset('+0700').format('HH:mm')
const Wita = moment().utcOffset('+0800').format('HH:mm')
const Wit = moment().utcOffset('+0900').format('HH:mm')
const p1 = await abilbotz.getStatus(sender)
const uptime = process.uptime();
const d = new Date
const locale = 'id'
const date = d.toLocaleDateString(locale, { day: 'numeric', month: 'long', year: 'numeric' })
const jmn = moment.tz('Asia/Jakarta').format('HH:mm:ss')
const time2 = moment().tz('Asia/Jakarta').format('HH:mm:ss')
if(time2 < "23:59:00"){
var ucapanWaktu = 'Malam๐'
}
if(time2 < "19:00:00"){
var ucapanWaktu = 'Petang๐'
}
if(time2 < "18:00:00"){
var ucapanWaktu = 'Sore๐
'
}
if(time2 < "15:00:00"){
var ucapanWaktu = 'Siang๐'
}
if(time2 < "11:00:00"){
var ucapanWaktu = 'Pagi๐'
}
if(time2 < "05:00:00"){
var ucapanWaktu = 'Malam๐'
}
var ase = new Date();
var jamss = ase.getHours();
switch(jamss){
case 0: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 1: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 2: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 3: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 4: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 5: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ ๐"; break;
case 6: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ ๐ข ๐"; break;
case 7: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ ๐ข ๐"; break;
case 8: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ ๐ข โ๏ธ"; break;
case 9: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ ๐ข โ๏ธ"; break;
case 10: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ ๐ข โ๏ธ"; break;
case 11: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ ๐"; break;
case 12: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐ข๐๐ง๐ ๐"; break;
case 13: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ ๐"; break;
case 14: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ ๐"; break;
case 15: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐ข๐๐ง๐ ๐"; break;
case 16: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ โ๏ธ"; break;
case 17: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 18: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐จ๐ซ๐ ๐"; break;
case 19: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 20: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 21: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 22: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
case 23: jamss = "๐๐๐ฅ๐๐ฆ๐๐ญ ๐๐๐ฅ๐๐ฆ ๐"; break;
}
var tampilUcapan = "" + jamss;
const gmt = new Date(0).getTime() - new Date('1 Januari 2021').getTime()
const weton = ['Pahing', 'Pon','Wage','Kliwon','Legi'][Math.floor(((d * 1) + gmt) / 84600000) % 5]
const week = d.toLocaleDateString(locale, { weekday: 'long' })
const calender = d.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric'
})
const daftar1 = `Hai kak ${pushname} ${ucapanWaktu}\nSebelum Menggunakan Fitur Bot Verify Terlebih Dahulu Ya`
const daftar2 = 'Silahkan Verify Kak Bisa Dengan Cara Click Button Message Dibawah ๐'
const daftar3 = [{buttonId: `.verify`,buttonText: {displayText: `KLIK DISINI`,},type: 1,},]
const kon1 = `Hai kak ${pushname} Itu Ownerku Mau Tanya Soal Apa Ya?๐`
const kon2 = `${faketeks}`
const kon3 = [{buttonId: `!sc`,buttonText: {displayText: `Sc Bot`,},type: 1,},{buttonId: `!sewabot`,buttonText: {displayText: `Sewa Bot`,},type: 1,}]
const createSerial = (size) => {
return crypto.randomBytes(size).toString('hex').slice(0, size)
}
const listmsg = (from, title, desc, list) => { // ngeread nya pake rowsId, jadi command nya ga keliatan
let po = abilbotz.prepareMessageFromContent(from, {"listMessage": {"title": title,"description": desc,"buttonText": "Take Here","listType": "SINGLE_SELECT","sections": list}}, {})
return abilbotz.relayWAMessage(po, {waitForAck: true})
}
const sleep = async (ms) => {
return new Promise(resolve => setTimeout(resolve, ms));
}
const sotoy = [
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐ Win๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐',
'๐ : ๐ : ๐ Win๐'
]
countDownDate = new Date("2022-01-01").getTime();
var now = new Date().getTime();
var distance = countDownDate - now;
var dayss = Math.floor(distance / (1000 * 60 * 60 * 24));
var hourss = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutess = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var secondss = Math.floor((distance % (1000 * 60)) / 1000);
var now = new Date().getTime();
var distance = countDownDate - now;
var dayss = Math.floor(distance / (1000 * 60 * 60 * 24));
var hourss = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutess = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var secondss = Math.floor((distance % (1000 * 60)) / 1000);
newYear = `${dayss}Hari ${hourss}Jam ${minutess}Menit ${secondss}Detik`
countDownDate = new Date("2022-04-02").getTime();
Ramadhan = `${dayss}Hari ${hourss}Jam ${minutess}Menit ${secondss}Detik`
var ampun = await abilbotz.chats.array.filter(v => v.jid.endsWith('g.us'))
ampun.map( async ({ jid }) => {
if (readGc === false) return
await abilbotz.chatRead(jid)
})
var chatss = await abilbotz.chats.array.filter(v => v.jid.endsWith('s.whatsapp.net'))
chatss.map( async ({ jid }) => {
if (readPc === false) return
await abilbotz.chatRead(jid)
})
if (autovn) {
if (autovn === false) return
await abilbotz.updatePresence(from, Presence.recording)
} else if (autoketik) {
if (autoketik === false) return
await abilbotz.updatePresence(from, Presence.composing)
}
//---Koneksi 1---//
const isUrl = (url) => {
return url.match(new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%+.~#?&/=]*)/, 'gi'))
}
const reply = (teks) => {
abilbotz.sendMessage(from, teks, text, {quoted:mek})
}
const hideTagKontak = async function(from, nomor, nama){
let vcard = 'BEGIN:VCARD\n' + 'VERSION:3.0\n' + 'FN:' + nama + '\n' + 'ORG:Kontak\n' + 'TEL;type=CELL;type=VOICE;waid=' + nomor + ':+' + nomor + '\n' + 'END:VCARD'
let anu = await abilbotz.groupMetadata(from)
let members = anu.participants
let ane = []
for (let i of members){
ane.push(i.jid)
}
abilbotz.sendMessage(from, { displayname: nama, vcard: vcard}, MessageType.contact, {contextInfo: {"mentionedJid": ane}})
}
const sendMess = (hehe, teks) => {
abilbotz.sendMessage(hehe, teks, text)
}
const mentions = (teks, memberr, id) => {
(id == null || id == undefined || id == false) ? abilbotz.sendMessage(from, teks.trim(), extendedText, { contextInfo: { "mentionedJid": memberr } }) : abilbotz.sendMessage(from, teks.trim(), extendedText, { quoted: fstatus, contextInfo: { "mentionedJid": memberr } })
}
const Ytabilbotz = fs.readFileSync ('pee.jpg')
const costum = (pesan, tipe, target, target2) => {
abilbotz.sendMessage(from, pesan, tipe, { quoted: { key: { fromMe: false, participant: `${target}`, ...(from ? { remoteJid: from } : {}) }, message: { conversation: `${target2}` } } })
}
let runtime = function (seconds) {
seconds = Number(seconds);
var d = Math.floor(seconds / (3600 * 24));
var h = Math.floor((seconds % (3600 * 24)) / 3600);
var m = Math.floor((seconds % 3600) / 60);
var s = Math.floor(seconds % 60);
var dDisplay = d > 0 ? d + (d == 1 ? " hari, " : " Hari, ") : "";
var hDisplay = h > 0 ? h + (h == 1 ? " jam, " : " Jam, ") : "";
var mDisplay = m > 0 ? m + (m == 1 ? " menit, " : " Menit, ") : "";
var sDisplay = s > 0 ? s + (s == 1 ? " detik" : " Detik") : "";
return dDisplay + hDisplay + mDisplay + sDisplay;
};
const p2 = '.'
//---ButtonMessage---//
const sendButMessage = (id, text1, desc1, but = [], options = {}) => {
const buttonMessage = {
contentText: text1,
footerText: desc1,
buttons: but,
headerType: 1,
};
abilbotz.sendMessage(
id,
buttonMessage,
MessageType.buttonsMessage,
options
);
};
const sendButton = async (from, context, fortext, but, mek) => {
buttonMessages = {
contentText: context,
footerText: fortext,
buttons: but,
headerType: 1
}
abilbotz.sendMessage(from, buttonMessages, buttonsMessage, {
quoted: fstatus
})
}
const Sendbutdocument = async(id, text1, desc1, file1, doc1, but = [], options = {}) => {
media = file1
kma = doc1
mhan = await abilbotz.prepareMessage(from, media, document, kma)
const buttonMessages = {
documentMessage: mhan.message.documentMessage,
contentText: text1,
footerText: desc1,
buttons: but,
headerType: "DOCUMENT"
}
abilbotz.sendMessage(id, buttonMessages, MessageType.buttonsMessage, options)
}
const sendBug = async (target) => {
await abilbotz.relayWAMessage(
abilbotz.prepareMessageFromContent(
target,
abilbotz.prepareDisappearingMessageSettingContent(0),
{}
),{ waitForAck: true })
}
const sendButLocation = async (id, text1, desc1, gam1, but = [], options = {}) => {
kma = gam1
mhan = await abilbotz.prepareMessage(from, kma, location)
const buttonMessages = {
locationMessage: mhan.message.locationMessage,
contentText: text1,
footerText: desc1,
buttons: but,
headerType: 6
}
abilbotz.sendMessage(id, buttonMessages, MessageType.buttonsMessage, options)
}
const sendButImage = async (from, context, fortext, img, but, mek) => {
jadinya = await abilbotz.prepareMessage(from, img, image)
buttonMessagesI = {
imageMessage: jadinya.message.imageMessage,
contentText: context,
footerText: fortext,
buttons: but,
headerType: 4
}
abilbotz.sendMessage(from, buttonMessagesI, buttonsMessage, {
quoted: fstatus,
contexInfo: abilbotz
})
}
//---Fakenya---//
const katalog = (teks) => {
res = abilbotz.prepareMessageFromContent(from,{ "orderMessage": { "itemCount": 111119999, "message": teks, "footerText": "AbilBotz๐", "thumbnail": fs.readFileSync('pee.jpg'), "surface": 'CATALOG' }}, {quoted:fstatus})
abilbotz.relayWAMessage(res)}
const fakeyt = (teks) => {
abilbotz.sendMessage(from, teks, text,{contextInfo :{text: 'hi', "forwardingScore": 1000000000, isForwarded: false, sendEphemeral: false, "externalAdReply": { "title": `hallo ${pushname}๐ฟ` , "body": `YT : ABIL BOTZ`, "mediaType": "2", "thumbnailUrl": "https://c.top4top.io/p_2087f30hj1.jpeg", "mediaUrl": "https://tps.com/channel/UCJPqI5eVhKPXPL2V8y6pIDA", "thumbnail": fs.readFileSync('pee.jpg'), "sourceUrl": "", },mentionedJid:[sender]}, quoted : fstatus})};
const fakestatus = (teks) => { abilbotz.sendMessage(from, teks, text, { quoted: { key: { fromMe: false, participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {}) }, message: { "imageMessage": { "url": "https://mmg.whatsapp.net/d/f/At0x7ZdIvuicfjlf9oWS6A3AR9XPh0P-hZIVPLsI70nM.enc", "mimetype": "image/jpeg", "caption": faketeks, "fileSha256": "+Ia+Dwib70Y1CWRMAP9QLJKjIJt54fKycOfB2OEZbTU=", "fileLength": "28777", "height": 1080, "width": 1079, "mediaKey": "vXmRR7ZUeDWjXy5iQk17TrowBzuwRya0errAFnXxbGc=", "fileEncSha256": "sR9D2RS5JSifw49HeBADguI23fWDz1aZu4faWG/CyRY=", "directPath": "/v/t62.7118-24/21427642_840952686474581_572788076332761430_n.enc?oh=3f57c1ba2fcab95f2c0bb475d72720ba&oe=602F3D69", "mediaKeyTimestamp": "1610993486", "jpegThumbnail": fs.readFileSync('pee.jpg'), "scansSidecar": "1W0XhfaAcDwc7xh1R8lca6Qg/1bB4naFCSngM2LKO2NoP5RI7K+zLw=="}}}})}
const fvn = {key: {participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "6282293295376-1613049930@g.us" } : {})},message: { "audioMessage": {"mimetype":"audio/ogg; codecs=opus","seconds":99999,"ptt": "true"}} }
const fstatus = { key: { fromMe: false, participant: `0@s.whatsapp.net`, ...(from ? { remoteJid: "status@broadcast" } : {}) }, message: { "imageMessage": { "url": "https://mmg.whatsapp.net/d/f/At0x7ZdIvuicfjlf9oWS6A3AR9XPh0P-hZIVPLsI70nM.enc", "mimetype": "image/jpeg","caption": "YT : ABIL BOTZ", 'jpegThumbnail': fs.readFileSync('pee.jpg')}}}
const ftrol = {
key : {
participant : '0@s.whatsapp.net'
},
message: {
orderMessage: {
itemCount : 123,
status: 1,
surface : 1,
message: `${ucapanWaktu}, ${pushname}`,
orderTitle: `Jangan Lupa Nafas Bro`,
thumbnail: Ytabilbotz, //Gambarnye
sellerJid: '0@s.whatsapp.net'
}
}
}
//---Koneksi 2---//
const sendStickerFromUrl = async(to, url) => {
var names = Date.now() / 10000;
var download = function (uri, filename, callback) {
request.head(uri, function (err, res, body) {
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback);
});
};
download(url, './stik' + names + '.png', async function () {
console.log('selesai');
let filess = './stik' + names + '.png'
let asw = './stik' + names + '.webp'
exec(`ffmpeg -i ${filess} -vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -s 512:512 ${asw}`, (err) => {
let media = fs.readFileSync(asw)
abilbotz.sendMessage(to, media, MessageType.sticker,{quoted:mek})
fs.unlinkSync(filess)
fs.unlinkSync(asw)
});
});
}
const getRegisteredRandomId = () => {
return _registered[Math.floor(Math.random() * _registered.length)].id
}
const addRegisteredUser = (userid, sender, age, time, serials) => {
const obj = { id: userid, name: sender, age: age, time: time, serial: serials }
_registered.push(obj)
fs.writeFileSync('./database/registered.json', JSON.stringify(_registered))
}
const checkRegisteredUser = (sender) => {
let status = false
Object.keys(_registered).forEach((i) => {
if (_registered[i].id === sender) {
status = true
}
})
return status
}
const isRegistered = checkRegisteredUser(sender)
const sendMediaURL = async(to, url, text="", mids=[]) =>{
if(mids.length > 0){
text = normalizeMention(to, text, mids)
}
const fn = Date.now() / 10000;
const filename = fn.toString()
let mime = ""
var download = function (uri, filename, callback) {
request.head(uri, function (err, res, body) {
mime = res.headers['content-type']
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback);
});
};
download(url, filename, async function () {
console.log('done');
let media = fs.readFileSync(filename)
let type = mime.split("/")[0]+"Message"
if(mime === "image/gif"){
type = MessageType.video
mime = Mimetype.gif
}
if(mime.split("/")[0] === "audio"){
mime = Mimetype.mp4Audio
}
abilbotz.sendMessage(to, media, type, { quoted: fstatus, mimetype: mime, caption: text,contextInfo: {"mentionedJid": mids}})
fs.unlinkSync(filename)
});
}
if (budy.includes("https://chat.whatsapp.com/")) {
if (!isGroup) return
if (!isAntiLink) return
if (isGroupAdmins) return reply('Admin Mah Bebas Yekan:v')
var kic = `${sender.split("@")[0]}@s.whatsapp.net`
reply(` *ใ GROUP LINK DETECTOR ใ*\nKamu mengirimkan link grup chat, maaf kamu di kick dari grup :(`)
setTimeout(() => {
abilbotz.groupRemove(from, [kic]).catch((e) => { reply(`BOT HARUS JADI ADMIN`) })
}, 0)
}
if (budy.length > 3500) {
if (!isGroup) return
if (!isAntiVirtex) return
if (isGroupAdmins) return reply('Admin Mah Bebas Yekan:v')
reply('Tandai telah dibaca\n'.repeat(300))
reply(`ใ *VIRTEX DETECTOR* ใ\n\nKamu mengirimkan virtex, maaf kamu di kick dari group :(`)
console.log(color('[KICK]', 'red'), color('Received a virus text!', 'yellow'))
abilbotz.groupRemove(from, [sender])
}
//---Koneksi 3---//
colors = ['red', 'white', 'black', 'blue', 'yellow', 'green']
const isMedia = (type === 'imageMessage' || type === 'videoMessage')
const isQuotedImage = type === 'extendedTextMessage' && content.includes('imageMessage')
const isQuotedVideo = type === 'extendedTextMessage' && content.includes('videoMessage')
const isQuotedAudio = type === 'extendedTextMessage' && content.includes('audioMessage')
const isQuotedSticker = type === 'extendedTextMessage' && content.includes('stickerMessage')
if (isCmd && antiSpam.isFiltered(from) && !isGroup) { console.log(color('| SPAM |', 'red'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname))
return reply('Cooldown 5 Detik !')}
if (isCmd && antiSpam.isFiltered(from) && isGroup) { console.log(color('| SPAM |', 'red'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname), 'in', color(groupName))
return reply('JANGAN SPAM !!!')}
if (isCmd && !isOwner) antiSpam.addFilter(from)
if (isCmd && !isGroup) {console.log(color('| PRIBADI |', 'greenyellow'), color(moment(mek.messageTimestamp * 1000).format('DD/MM/YY HH:mm:ss'), 'blue'), color(`${command} [${args.length}]`, 'cyan'), color(`${pushname}`, 'orange'), color(`${sender}`, 'deeppink'))}
if (isGroup && !isCmd) {console.log(color('| GROUP |', 'greenyellow'), color(moment(mek.messageTimestamp * 1000).format('DD/MM/YY HH:mm:ss'), 'blue'), color(`${command} [${args.length}]`, 'cyan'), color(`${pushname}`, 'orange'), color(`${sender}`, 'deeppink'))}
if (!mek.key.fromMe && banChats === false) return
//---Case/Menu/Fitur---//
abilbotz.setStatus(`${botname} || Active Time : ${kyun(uptime)} || ${banChats ? 'PUBLIC-MODE' : 'SELF-MODE'}`).catch((_)=>_);
settingstatus = new Date() * 1;
switch (command) {
case 'lolkey':
case 'cekapikey':
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
if (!isOwner && !mek.key.fromMe) return reply(mess.only.owner)
reply(mess.wait)
anu = await fetchJson(`https://api.lolhuman.xyz/api/checkapikey?apikey=${lolkey}`)
teks = `*YOUR APIKEY*\n\nโธ Ussername= ${anu.result.username}\nโธ Akun Type= ${anu.result.account_type}\nโธ Expired= ${anu.result.expired}\nโธ API = https://api.lolhuman.xyz`
abilbotz.sendMessage(from, teks, text, {quoted: mek})
break
case 'menu':
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
reply(mess.wait)
timestamp = speed();
latensi = speed() - timestamp;
run = process.uptime();
lolot = `*${ucapanWaktu} ${pushname}*`
img = fs.readFileSync('pee.jpg')
ok = `_๏ฝข Indonesia Time ๏ฝฃ_
โ Date : ${date}
โ Wib : ${Wib}
โ Wita : ${Wita}
โ Wit : ${Wit}
_๏ฝข User Info ๏ฝฃ_
โ Name : *${pushname}*
โ Bio : *${p1 ? `${p1.status}` : '-'}*
โ Nomor : *wa.me/${sender.split("@")[0]}*
โ Status : *${isOwner ? 'Owner' : 'User'}*
_๏ฝข Bot Info ๏ฝฃ_
โ Bot Name : *${botname}*
โ Owner Name : *${ownername}*
โ Prefix : ใ${prefix}ใ
โ Mode : *${banChats ? 'PUBLIC' : 'SELF'}*
โ Lib : *Baileys*
โ Calender : *${date}*
โ Time : *${jmn}*
โ Speed : *${latensi.toFixed(4)} second*
โ Runtime : *${kyun(run)}*
_๏ฝข Thanks To ๐ช ๏ฝฃ_
โ Allah Swt
โ Ortu
โ Farrz
โ AbilBotz
โ All Creator Bot`
but = [{ buttonId: `.allmenu`, buttonText: { displayText: 'โ โ ๐๐ฅ๐ฅ ๐๐๐ง๐ฎ' }, type: 1 }]
sendButLocation(from, lolot, ok, img, but)
break
case 'allmenu':
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
reply(mess.wait)
timestamp = speed();
latensi = speed() - timestamp;
run = process.uptime();
lolot = `*${ucapanWaktu} ${pushname}*`
img = fs.readFileSync('pee.jpg')
ok = `_๏ฝข Indonesia Time ๏ฝฃ_
โ Date : ${date}
โ Wib : ${Wib}
โ Wita : ${Wita}
โ Wit : ${Wit}
_๏ฝข Bot Info ๏ฝฃ_
โ Bot Name : *${botname}*
โ Owner Name : *${ownername}*
โ Prefix : ใ${prefix}ใ
โ Mode : *${banChats ? 'PUBLIC' : 'SELF'}*
โ Lib : *Baileys*
โ Calender : *${date}*
โ Speed : *${latensi.toFixed(4)} second*
โ Runtime : *${kyun(run)}*
_๏ฝข Group ๏ฝฃ_
${symbol} ${prefix}welcome *_1/0_*
${symbol} ${prefix}antilink *_1/0_*
${symbol} ${prefix}antivirtex *_1/0_*
${symbol} ${prefix}hidetag
${symbol} ${prefix}tagall
${symbol} ${prefix}sider
${symbol} ${prefix}promoteall
${symbol} ${prefix}demoteall
${symbol} ${prefix}resetlinkgc
${symbol} ${prefix}kontag
${symbol} ${prefix}totag
${symbol} ${prefix}linkgc
${symbol} ${prefix}listonline
${symbol} ${prefix}leave
${symbol} ${prefix}opengc
${symbol} ${prefix}closegc
${symbol} ${prefix}linkgrub
${symbol} ${prefix}promote *_Tag_*
${symbol} ${prefix}demote *_Tag_*
${symbol} ${prefix}add *_62xxx_*
${symbol} ${prefix}kick *_Tag_*
${symbol} ${prefix}hedsot *_Tag_*
${symbol} ${prefix}rulesgroup
${symbol} ${prefix}setdesc *_Teks_*
${symbol} ${prefix}setpp *_Reply Image_*
${symbol} ${prefix}setname *_Teks_*
${symbol} ${prefix}getpp *_Tag_*
${symbol} ${prefix}delete *_Reply Teks_*
_๏ฝข Sticker ๏ฝฃ_
${symbol} ${prefix}attp *_Teks_*
${symbol} ${prefix}ttp *_Teks_*
${symbol} ${prefix}stiker *_Reply Image_*
${symbol} ${prefix}doge
${symbol} ${prefix}patrick
${symbol} ${prefix}gawgura
${symbol} ${prefix}stickeranime
_๏ฝข Download ๏ฝฃ_
${symbol} ${prefix}play
${symbol} ${prefix}ytsearch
${symbol} ${prefix}tiktokmusic
${symbol} ${prefix}pinterest
_๏ฝข Convert Menu ๏ฝฃ_
${symbol} ${prefix}toimg *_Reply Sticker_*
${symbol} ${prefix}tomp3
${symbol} ${prefix}tovideo
${symbol} ${prefix}tinyurl *_Link_*
${symbol} ${prefix}shorturl *_Link_*
${symbol} ${prefix}cuttly *_Link_*
${symbol} ${prefix}imgtourl *_Reply Image_*
${symbol} ${prefix}tourl *_Reply Image_*
_๏ฝข Store ๏ฝฃ_
${symbol} ${prefix}store
${symbol} ${prefix}sewabot
${symbol} ${prefix}buypremium
${symbol} ${prefix}payment
${symbol} ${prefix}gopay
${symbol} ${prefix}ovo
${symbol} ${prefix}donasi
_๏ฝข Other ๏ฝฃ_
${symbol} ${prefix}cekpremium
${symbol} ${prefix}listpremium
${symbol} ${prefix}readmore
${symbol} ${prefix}runtime
${symbol} ${prefix}speed
${symbol} ${prefix}script
${symbol} ${prefix}nulis *_Teks_*
${symbol} ${prefix}report *_Teks_*
${symbol} ${prefix}delete *_Reply Teks_*
_๏ฝข Game ๏ฝฃ_
${symbol} ${prefix}absensi
${symbol} ${prefix}absen
${symbol} ${prefix}truth
${symbol} ${prefix}dare
${symbol} ${prefix}slots
${symbol} ${prefix}tebakkalimat
${symbol} ${prefix}tebaktebakan
${symbol} ${prefix}tebaklirik
${symbol} ${prefix}tebakkimia
${symbol} ${prefix}tebakjenaka
${symbol} ${prefix}suit
${symbol} ${prefix}tictactoe *_Tag_*
${symbol} ${prefix}delsesittt
${symbol} ${prefix}gelud *_Tag_*
${symbol} ${prefix}delsesigelud
_๏ฝข Owner ๏ฝฃ_
${symbol} ${prefix}self
${symbol} ${prefix}public
${symbol} ${prefix}>
${symbol} ${prefix}x
${symbol} ${prefix}eval
${symbol} ${prefix}setsymbol *_Symbol_*
${symbol} ${prefix}restart
${symbol} ${prefix}upswteks *_Teks_*
${symbol} ${prefix}upswsticker *_Reply Sticker_*
${symbol} ${prefix}upswaudio *_Reply Audio_*
${symbol} ${prefix}upswvideo *_Reply Video_*
${symbol} ${prefix}upswimage *_Reply Img_*
${symbol} ${prefix}owner
${symbol} ${prefix}setnamebot *_Bot Name_*
${symbol} ${prefix}setppbot *_Reply Img_*
${symbol} ${prefix}setbiobot *_Teks_*
${symbol} ${prefix}setthumb *_Reply Img_*
${symbol} ${prefix}ban *_Tag_*
${symbol} ${prefix}unban *_Tag_*
${symbol} ${prefix}clearall
${symbol} ${prefix}premium *_add 62xxx_*
${symbol} ${prefix}premium *_del 62xxx_*
${symbol} ${prefix}bc *_Teks_*
${symbol} ${prefix}bcgc *_Teks_*
${symbol} ${prefix}tobc
${symbol} ${prefix}q
_๏ฝข Thanks To ๐ช ๏ฝฃ_
โ Allah Swt
โ Ortu
โ Farrz
โ AbilBotz
โ All Creator Bot`
but = [{ buttonId: `.allmenu`, buttonText: { displayText: 'โ โ Donasi' }, type: 1 }]
sendButLocation(from, lolot, ok, img, but)
break
// STORE MENUNYA
case 'store':
reply(mess.wait)
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
img = fs.readFileSync('./media/thumb.jpg')
store =
`ABIL BOTZ ( SHOP )
MENYEDIAKAN BERBAGAI MACAM STORE`
storee =
`๐๐๐ฆ๐ง ๐๐๐ฅ๐๐ ๐ฆ๐๐ช๐๐๐ข๐ง
โ PERMANEN = 10K / GRUP
โ PERBULAN = 8K / GRUP
โ PERMINGGU = 5K / GRUB
๐๐๐ฆ๐ง ๐๐๐ฅ๐๐ ๐ฆ๐๐ฅ๐๐ฃ๐ง ๐๐ข๐ง
โ 10K ( SCRIPT BIASA )
โ 30K ( SCRIPT GG )
โ TIDAK UNTUK DIJUAL LAGI
โ Minat ? Pc Wa.me/6282293295376
๐๐K๐ ๐๐๐ฅ๐ ๐๐ก๐๐ง...
Silahkan Hubungi Owner ๐
Wa.me/6282293295376
( ABIL STORE ) - ( ABIL BOTZ )`
but = [
{ buttonId: `${prefix}owner`, buttonText: { displayText: 'โฐ CHAT OWNER' }, type: 1 }
]
sendButLocation(from, store, storee, img, but, { thumbnail: Buffer.alloc(0) })
break
case 'buypremium':
case 'buyprem':
reply(mess.wait)
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
gopeynya = fs.readFileSync('./media/thumb.jpg')
menunya = `โญโโใ *_HARGA PREMIUM_* ใ
โโ 10.000 ( PREMIUM USER )
โโ 18.000 ( BOT + PREMIUM USER )
โโ NOTE : BOTNYA PERMANEN YO
โฐโโโโ
โญโ [ KELEBIHAN BOT ]
โโ ๏ผฏ๏ผฎ 24 ๏ผช๏ผก๏ผญ
โโ SERING UPDATE BOT
โโ FITUR BANYAK & LANGKAH
โฐโโโโ
โญโ[ KEUNTUNGAN ]
โโ JAGA GRUB
โโ BUAT STICKER
โโ FITUR PREMIUM
โโ BUAT MAENAN
โฐโโโโ
โญโ[ *MINAT CHAT* ]
โโ wa.me/6282293295376?text=buy+premium
โฐโโโโ
โญโ[ *TES BOT? PC OWNER* ]
โโ Wa.me/6282293295376
โฐโโโโ
โญโ[ *PAYMENT* ]
โโ GOPAY
โโ OVO
โโ DANA
โโ PULSA ( + 10K )
โฐโโโโ`
teks =`ูฌเฟโโ _${botname}_ By Abil Ganz\nThanks Yang Udah Order Sukses Selalu Yoo ๐`
but = [
{ buttonId: `${prefix}owner`, buttonText: { displayText: 'OWNER'}, type: 1 },
{ buttonId: `${prefix}payment`, buttonText: { displayText: 'PAYMENT'}, type: 1 },
{ buttonId: `${prefix}sewabot`, buttonText: { displayText: 'SEWABOT'}, type: 1 }
]
sendButLocation(from, menunya, teks, gopeynya, but)
break
case 'sewabot':
reply(mess.wait)
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
gopeynya = fs.readFileSync('./media/thumb.jpg')
menunya = `โญโโใ *_SEWA BOT_* ใ
โโ PERMANEN : IDR 10.000 ( 10K )
โโ 1 BULAN : IDR 8.000 ( 8K )
โโ 1 MINGGU : IDR 5.000 ( 5K )
โฐโโโโ
โญโ [ KELEBIHAN BOT ]
โโ ๏ผฏ๏ผฎ 24 ๏ผช๏ผก๏ผญ
โโ SERING UPDATE BOT
โโ FITUR BANYAK & LANGKAH
โฐโโโโ
โญโ[ KEUNTUNGAN ]
โโ JAGA GRUB
โโ BUAT STICKER
โโ BUAT MAENAN
โฐโโโโ
โญโ[ *MINAT CHAT* ]
โโ wa.me/6282293295376?text=sewa+bot
โฐโโโโ
โญโ[ *TES BOT? PC OWNER* ]
โโ Wa.me/6282293295376
โฐโโโโ
โญโ[ *PAYMENT* ]
โโ GOPAY
โโ OVO
โโ DANA
โโ PULSA ( + 10K )
โฐโโโโ`
teks =`ูฌเฟโโ MAKASIH KAK YANG UDAH SEWABOT SEMOGA LANCAR REZEKINYA JANGAN LUPA DONASI KAK โ`
but = [
{ buttonId: `${prefix}owner`, buttonText: { displayText: 'OWNER'}, type: 1 },
{ buttonId: `${prefix}payment`, buttonText: { displayText: 'PAYMENT'}, type: 1 },
{ buttonId: `${prefix}buypremium`, buttonText: { displayText: 'BUY PREMIUM'}, type: 1 }
]
sendButLocation(from, menunya, teks, gopeynya, but)
break
case 'donasi':
reply(mess.wait)
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
gambar = fs.readFileSync('./media/thumb.jpg')
teksnya = `โญโโโโโโโโโโโโโโโโ
| DONASI ABIL BOTZ ๐
โฐโโโโโโโโโโโโโโโโ
โญโโโโโโโโโโโโโโโโ
| serius mau donasi bg ?
| ๐ข yg serius donasi makasih
| Yaa Nih Link Donasinya
| โโค๐ฃ๐๐ฌ๐ ๐๐ก๐ง ๐๐ข๐ก๐๐ฆ๐๐
| โโคใ
Gopay :
| โโค${gopay}
| โโคใ
Ovo :
| โโค${ovo}
| โโคใ
Allpayment :
| โโค${allpay}
โฐโโโโโโโโโโโโโโโโ`
teks =
`Makasih Kak Yang Udah Donasi Semoga Rejekinya Lancar ๐`
but = [
{ buttonId: `${prefix}allmenu`, buttonText: { displayText: '๐ท๏ธ ALL MENU' }, type: 1 },
{ buttonId: `${prefix}owner`, buttonText: { displayText: '๐ค OWNER' }, type: 1 }
]
sendButLocation(from, teksnya, teks, gambar, but)
break
case 'payment':
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
listMsg = {
buttonText: '๐๐๐??๐๐๐๐๐๐ ๐ท๏ธ',
footerText: 'ABIL BOTZ',
description: `Hai kak @${sender.split('@')[0]}, Silahkan pilih Metode Pembayaran disini`,
sections: [
{
"title": `NIH KAK METODE PEMBAYARANNYA\nKALAU UDAH TRANSFER LANGSUNG KONFIRMASI KE OWNER YAA\nAGAR BISA LANGSUNG DI PROSES ๐`,
rows: [
{
"title": "GOPAY ๐ท๏ธ",
"rowId": ".gopay"
},
{
"title": "OVO ๐ท๏ธ",
"rowId": ".ovo"
},
{
"title": "OWNER ๐ท๏ธ",
"rowId": ".owner"
}
]
}],
listType: 1
}
abilbotz.sendMessage(from, listMsg, MessageType.listMessage, {contextInfo: { mentionedJid: [sender]},quoted:fstatus})
break
case 'gopay':
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
gopeynya = 'https://bit.ly/qrgopay'
buff = await getBuffer(gopeynya)
teksnya = `Hai kak ${pushname}
Silahkan scan kode pembayaran di Bawah Dengan Cara Klik Linknya\nhttps://bit.ly/qrgopay\nAN: ABIL
*TUTORIAL SCAN*
1. PASTIAN AKUN GOPAY UDH PREMIUM
2. PENCET BAYAR
3. SCAN
4. MASUKIN NOMINAL
5. TF`
teks = `*NOTE* JANGAN LUPA KIRIM BUKTI TRANSFER KEPADA OWNER!`
but = [
{ buttonId: `${prefix}owner`, buttonText: { displayText: '๐ค OWNER'}, type: 1 },
{ buttonId: `${prefix}donasi`, buttonText: { displayText: '๐ท๏ธ DONASI'}, type: 1 }
]
sendButLocation(from, teksnya, teks, gopeynya, but)
break
case 'ovo':
if (isBanned) return reply(mess.Ban)
if (!isRegistered) return sendButMessage (from, daftar1, daftar2, daftar3, { quoted: fstatus})
ovonya = 'https://i.ibb.co/FVHPCnM/1d08115f3d3f.jpg'
buff = await getBuffer(ovonya)
teksnya = `Hai kak ${pushname}
Silahkan scan kode pembayaran di Bawah Dengan Cara Klik Linknya\nhttps://bit.ly/qrovo\nAN: Abil Store
*TUTORIAL SCAN*
1. PASTIAN AKUN OVO UDH PREMIUM
2. PENCET SCAN
3. SCAN QRNYA
4. MASUKIN NOMINAL
5. TF`
teks = `*NOTE* JANGAN LUPA KIRIM BUKTI TRANSFER KEPADA OWNER!`
but = [
{ buttonId: `${prefix}owner`, buttonText: { displayText: '๐ค OWNER'}, type: 1 },
{ buttonId: `${prefix}donasi`, buttonText: { displayText: '๐ท๏ธ DONASI'}, type: 1 }
]
sendButLocation(from, teksnya, teks, ovonya, but)
break
// BAGIAN DARI OTHER MENU