-
Notifications
You must be signed in to change notification settings - Fork 131
/
adrian.js
4704 lines (4452 loc) · 224 KB
/
adrian.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('./config')
const { BufferJSON, WA_DEFAULT_EPHEMERAL, generateWAMessageFromContent, proto, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, areJidsSameUser, getContentType } = require('@adiwajshing/baileys')
const fs = require('fs')
const util = require('util')
const chalk = require('chalk')
const axios = require('axios')
const path = require('path')
const os = require('os')
const fsx = require('fs-extra')
const jsobfus = require('javascript-obfuscator')
const moment = require('moment-timezone')
const { JSDOM } = require('jsdom')
const speed = require('performance-now')
const { performance } = require('perf_hooks')
const { Primbon } = require('scrape-primbon')
const primbon = new Primbon()
const { TelegraPh, UploadFileUgu, webp2mp4File, floNime } = require('./lib/uploader')
const { toAudio, toPTT, toVideo, ffmpeg } = require('./lib/converter')
const { exec, spawn, execSync } = require("child_process")
const qris = fs.readFileSync ('./media/qris.jpg')
const { smsg, getGroupAdmins, formatp, tanggal, formatDate, getTime, isUrl, await, sleep, clockString, msToDate, sort, toNumber, enumGetKey, runtime, fetchJson, getBuffer, jsonformat, delay, format, logic, generateProfilePicture, parseMention, getRandom, pickRandom, reSize } = require('./lib/myfunc')
const { addResponList, delResponList, isAlreadyResponList, isAlreadyResponListGroup, sendResponList, updateResponList, getDataResponList } = require('./lib/addlist');
const { getRegisteredRandomId, addRegisteredUser, createSerial, checkRegisteredUser } = require('./database/register.js')
// read database
global.db.data = JSON.parse(fs.readFileSync('./src/database.json'))
if (global.db.data) global.db.data = {
users: {},
premium: {},
banned: {},
group: {},
database: {},
settings: {},
donate: {},
others: {},
sticker: {},
...(global.db.data || {})
}
moment.tz.setDefault("Asia/Jakarta").locale("id")
module.exports = conn = async (conn, m, chatUpdate, store) => {
try {
var body = (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) : ''
var budy = (typeof m.text == 'string' ? m.text : '')
var prefix = prefa ? /^[°•π÷׶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi.test(body) ? body.match(/^[°•π÷׶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi)[0] : "" : prefa ?? global.prefix
const isCmd = body.startsWith(prefix)
const command = body.replace(prefix, '').trim().split(/ +/).shift().toLowerCase()
const args = body.trim().split(/ +/).slice(1)
const full_args = body.replace(command, '').slice(1).trim()
const pushname = m.pushName || "No Name"
const botNumber = await conn.decodeJid(conn.user.id)
const isCreator = [botNumber, global.owner, '6289513081052'].map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender)
const itsMe = m.sender == botNumber ? true : false
const text = q = args.join(" ")
const fatkuns = (m.quoted || m)
const quoted = (fatkuns.mtype == 'buttonsMessage') ? fatkuns[Object.keys(fatkuns)[1]] : (fatkuns.mtype == 'templateMessage') ? fatkuns.hydratedTemplate[Object.keys(fatkuns.hydratedTemplate)[1]] : (fatkuns.mtype == 'product') ? fatkuns[Object.keys(fatkuns)[0]] : m.quoted ? m.quoted : m
const mime = (quoted.msg || quoted).mimetype || ''
const qmsg = (quoted.msg || quoted)
const isMedia = /image|video|sticker|audio/.test(mime)
const groupMetadata = m.isGroup ? await conn.groupMetadata(m.chat).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
const groupOwner = m.isGroup ? groupMetadata.owner : ''
const isGroupOwner = m.isGroup ? (groupOwner ? groupOwner : groupAdmins).includes(m.sender) : false
const isPremium = isCreator || global.premium.map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender) || false
const isRegistered = checkRegisteredUser(m.sender)
// Days
const hariini = moment.tz('Asia/Jakarta').format('dddd, DD MMMM YYYY')
const wib = moment.tz('Asia/Jakarta').format('HH : mm : ss')
const wit = moment.tz('Asia/Jayapura').format('HH : mm : ss')
const wita = moment.tz('Asia/Makassar').format('HH : mm : ss')
const time2 = moment().tz('Asia/Jakarta').format('HH:mm:ss')
if(time2 < "23:59:00"){
var ucapanWaktu = 'Selamat Malam 🏙️'
}
if(time2 < "19:00:00"){
var ucapanWaktu = 'Selamat Petang 🌆'
}
if(time2 < "18:00:00"){
var ucapanWaktu = 'Selamat Sore 🌇'
}
if(time2 < "15:00:00"){
var ucapanWaktu = 'Selamat Siang 🌤️'
}
if(time2 < "10:00:00"){
var ucapanWaktu = 'Selamat Pagi 🌄'
}
if(time2 < "05:00:00"){
var ucapanWaktu = 'Selamat Subuh 🌆'
}
if(time2 < "03:00:00"){
var ucapanWaktu = 'Selamat Tengah Malam 🌃'
}
const fkontak = {
key: {
participant: `[email protected]`,
...(m.chat ? {
remoteJid: `status@broadcast`
} : {})
},
message: {
'contactMessage': {
'displayName': `${namaowner}`,
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;${namabot},;;;\nFN:${namabot}\nitem1.TEL;waid=${owner}:+${owner}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`,
'jpegThumbnail': thumb,
thumbnail: thumb,
sendEphemeral: true
}
}
}
// Database Tambahan!!
let prem = JSON.parse(fs.readFileSync('./database/premium.json'))
let vnnya = JSON.parse(fs.readFileSync('./database/vnnya.json'))
let db_error = JSON.parse(fs.readFileSync('./database/error.json'));
let akinator = JSON.parse(fs.readFileSync('./src/akinator.json'));
let db_respon_list = JSON.parse(fs.readFileSync('./database/list.json'));
// let _family100 = db.data.game.family100 = []
// Const Tambahan Sc Gw
const more = String.fromCharCode(8206)
const readmore = more.repeat(4001)
const getCase = (cases) => {
return "case "+`'${cases}'`+fs.readFileSync("./adrian.js").toString().split('case \''+cases+'\'')[1].split("break")[0]+"break"
}
const totalFitur = () =>{
var mytext = fs.readFileSync("./adrian.js").toString()
var numUpper = (mytext.match(/case '/g) || []).length;
return numUpper
}
const sendvn = (teks) => {
conn.sendMessage(from, { audio: teks, mimetype: 'audio/mp4', ptt: true }, { quoted: m })
}
for (let anju of vnnya) {
if (budy === anju) {
let buffer = fs.readFileSync(`./database/AUDIO/${anju}.mp3`)
sendvn(buffer)
}
}
// Function Created By ManzGans Alias Dryan ft .𝐗𝐓𝐑𝐀𝐌
function pickRandom(list) {
return list[Math.floor(list.length * Math.random())]
}
function generaterandomassword() {
return Array(10).fill(null).map(() => (Math.random() * 16 | 0).toString(16)).join('');
}
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: `ManzGans`,
result: obfuscationResult.getObfuscatedCode()
}
resolve(result)
} catch (e) {
reject(e)
}
})
}
// Created By ArxzyDev
async function newReply(teks) {
const arxzy = {
contextInfo: {
mentionedJid: [m.sender],
externalAdReply: {
showAdAttribution: true,
title: ucapanWaktu,
body: global.namabot,
previewType: "PHOTO",
thumbnailUrl: global.imageurl,
sourceUrl: global.isLink
}
},
text: teks
};
return conn.sendMessage(m.chat, arxzy, {
quoted: m
});
};
try {
let isNumber = x => typeof x === 'number' && !isNaN(x)
let limitUser = isPremium ? global.limitawal.premium : 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,
}
let group = global.db.data.group[m.chat]
if (typeof group !== 'object') global.db.data.group[m.chat] = {}
if (group) {
if (!('mute' in group)) group.mute = false
if (!('antilink' in group)) group.antilink = false
if (!('antilinkyt' in group)) group.antilinkyt = false
if (!('antilinktt' in group)) group.antilinktt = false
if (!('antivirtex' in group)) group.antivirtex = false
if (!('antisettings' in group)) group.antisettings = true
if (!('antilinkv2' in group)) group.antilinkv2 = false
} else global.db.data.group[m.chat] = {
mute: false,
antilink: false,
antilinkyt: false,
antilinktt: false,
antivirtex: false,
antisettings: true,
antilinkv2: true
}
let setting = global.db.data.settings[botNumber]
if (typeof setting !== 'object') global.db.data.settings[botNumber] = {}
if (setting) {
if (!isNumber(setting.status)) setting.status = 0
if (!('autobio' in setting)) setting.autobio = false
if (!('autoread' in setting)) setting.autoread = false
} else global.db.data.settings[botNumber] = {
status: 0,
autobio: false,
autoread: false
}
} catch (err) {
console.error(err)
}
// Public & Self
if (!conn.public) {
if (!m.key.fromMe) return
}
if (m.message) {
if (global.db.data.settings[botNumber].autoread) {
conn.readMessages([m.key])
}
}
// Apikey
apikey = `carolineismine`
// Akinator Setting Start
/* if (akinator.hasOwnProperty(m.sender.split('@')[0]) && isCmd && ["0", "1", "2", "3", "4", "5"].includes(body)) {
var { server, frontaddr, session, signature, question, step } = akinator[m.sender.split('@')[0]]
if (step == "0" && budy == "5") newReply("Maaf Anda telah mencapai pertanyaan pertama")
var ini_url = `https://api.lolhuman.xyz/api/akinator/answer?apikey=${apikey}&server=${server}&frontaddr=${frontaddr}&session=${session}&signature=${signature}&answer=${budy}&step=${step}`
var get_result = await fetchJson(ini_url)
var get_result = get_result.result
if (get_result.hasOwnProperty("name")) {
var ini_name = get_result.name
var description = get_result.description
ini_txt = `${ini_name} - ${description}\n\n`
ini_txt += "*Sekian dan terima gaji. Akinator by GabutBot*"
await conn.sendImage(m.chat, get_result.image, ini_txt, m).then(() => {
delete akinator[m.sender.split('@')[0]]
fs.writeFileSync("./src/akinator.json", JSON.stringify(akinator))
})
return
}
var { question, _, step } = get_result
ini_txt = `${question}\n\n`
ini_txt += "0 - Ya\n"
ini_txt += "1 - Tidak\n"
ini_txt += "2 - Saya Tidak Tau\n"
ini_txt += "3 - Mungkin\n"
ini_txt += "4 - Mungkin Tidak\n"
ini_txt += "5 - Kembali ke Pertanyaan Sebelumnya"
if (args[0] === '5') {
var ini_url = `https://api.lolhuman.xyz/api/akinator/back?apikey=${apikey}&server=${server}&frontaddr=${frontaddr}&session=${session}&signature=${signature}&answer=${budy}&step=${step}`
var get_result = await fetchJson(ini_url)
var get_result = get_result.result
var { question, _, step } = get_result
ini_txt = `${question}\n\n`
ini_txt += "0 - Ya\n"
ini_txt += "1 - Tidak\n"
ini_txt += "2 - Saya Tidak Tau\n"
ini_txt += "3 - Mungkin\n"
ini_txt += "4 - Mungkin Tidak"
ini_txt += "5 - Kembali ke Pertanyaan Sebelumnya"
}
conn.sendText(m.chat, ini_txt, m).then(() => {
const data_ = akinator[m.sender.split('@')[0]]
data_["question"] = question
data_["step"] = step
akinator[m.sender.split('@')[0]] = data_
fs.writeFileSync("./src/akinator.json", JSON.stringify(akinator))
})
}
// Akinator settings end
if (('family100'+m.chat in _family100) && isCmd) {
let room = _family100['family100'+m.chat]
let teks = budy.toLowerCase().replace(/[^\w\s\-]+/, '')
let isSurender = /^((me)?nyerah|surr?ender)$/i.test(m.text)
if (!isSurender) {
let index = room.jawaban.findIndex(v => v.toLowerCase().replace(/[^\w\s\-]+/, '') === teks)
if (room.terjawab[index]) return !0
room.terjawab[index] = m.sender
}
let isWin = room.terjawab.length === room.terjawab.filter(v => v).length
let caption = `
Jawablah Pertanyaan Berikut :\n${room.soal}\n\n\nTerdapat ${room.jawaban.length} Jawaban ${room.jawaban.find(v => v.includes(' ')) ? `(beberapa Jawaban Terdapat Spasi)` : ''}
${isWin ? `Semua Jawaban Terjawab` : isSurender ? 'Menyerah!' : ''}
${Array.from(room.jawaban, (jawaban, index) => {
return isSurender || room.terjawab[index] ? `(${index + 1}) ${jawaban} ${room.terjawab[index] ? '@' + room.terjawab[index].split('@')[0] : ''}`.trim() : false
}).filter(v => v).join('\n')}
${isSurender ? '' : `Perfect Player`}`.trim()
conn.sendText(m.chat, caption, m, { contextInfo: { mentionedJid: parseMention(caption) }}).then(mes => { return _family100['family100'+m.chat].pesan = mesg }).catch(_ => _)
if (isWin || isSurender) delete _family100['family100'+m.chat]
}
*/
// Push Message To Console && Auto Read
if (m.message) {
console.log(chalk.black(chalk.bgWhite('[ PESAN ]')), chalk.black(chalk.bgGreen(new Date)), chalk.black(chalk.bgBlue(budy || m.mtype)) + '\n' + chalk.magenta('=> Dari'), chalk.green(pushname), chalk.yellow(m.sender) + '\n' + chalk.blueBright('=> Di'), chalk.green(m.isGroup ? pushname : 'Private Chat', m.chat))
}
let cron = require('node-cron')
cron.schedule('00 12 * * *', () => {
let user = Object.keys(global.db.data.users)
let limitUser = isPremium ? global.limitawal.premium : global.limitawal.free
for (let jid of user) global.db.data.users[jid].limit = limitUser
console.log('Reseted Limit')
}, {
scheduled: true,
timezone: "Asia/Jakarta"
})
if (db.data.settings[botNumber].autobio) {
let setting = global.db.data.settings[botNumber]
if (new Date() * 1 - setting.status > 1000) {
let _uptime = process.uptime() * 1000
let uptime = clockString(_uptime)
await conn.updateProfileStatus(`I am ${namabot} | Aktif Selama ${uptime} ⏳ | Mode : ${conn.public ? 'Public-Mode' : 'Self-Mode'} | User : ${Object.keys(global.db.data.users).length}`).catch(_ => _)
setting.status = new Date() * 1
}
}
// Respon Cmd with media
if (isMedia && m.msg.fileSha256 && (m.msg.fileSha256.toString('base64') in global.db.data.sticker)) {
let hash = global.db.data.sticker[m.msg.fileSha256.toString('base64')]
let { text, mentionedJid } = hash
let messages = await generateWAMessage(m.chat, { text: text, mentions: mentionedJid }, {
userJid: conn.user.id,
quoted: m.quoted && m.quoted.fakeObj
})
messages.key.fromMe = areJidsSameUser(m.sender, conn.user.id)
messages.key.id = m.key.id
messages.pushName = m.pushName
if (m.isGroup) messages.participant = m.sender
let msg = {
...chatUpdate,
messages: [proto.WebMessageInfo.fromObject(messages)],
type: 'append'
}
conn.ev.emit('messages.upsert', msg)
}
if (db.data.group[m.chat].antilink) {
if (budy.match(`chat.whatsapp.com`)) {
newReply(`「 ANTI LINK WHATSAPP 」\n\nKamu Terdeteksi Mengirim Link Group, Maaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
let gclink = (`https://chat.whatsapp.com/` + await conn.groupInviteCode(m.chat))
let isLinkThisGc = new RegExp(gclink, 'i')
let isgclink = isLinkThisGc.test(m.text)
if (isgclink) return newReply(`Ehh Maaf Gak Jadi, Link Group Ini Ternyata 😆`)
if (isAdmins) return newReply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return newReply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
if (db.data.group[m.chat].antilinkv2) {
if (budy.match(`chat.whatsapp.com`)) {
newReply(`「 ANTI LINK WHATSAPP 」\n\n*JANGAN SHARE GC LAIN!!!*`)
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
let gclink = (`https://chat.whatsapp.com/` + await conn.groupInviteCode(m.chat))
let isLinkThisGc = new RegExp(gclink, 'i')
let isgclink = isLinkThisGc.test(m.text)
if (isgclink) return newReply(`Ehh Maaf Gak Jadi, Link Group Ini Ternyata 😆`)
if (isAdmins) return newReply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return newReply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
conn.sendMessage(m.chat, { delete: m.key })
}
}
//Anti Link YouTube
if (db.data.group[m.chat].antilinkyt) {
if (budy.match(`https://youtu.be`)) {
newReply(`「 ANTI LINK YOUTUBE 」\n\nKamu Terdeteksi Mengirim Link Youtube, Maaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
if (isAdmins) return newReply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return newReply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
//Anti Link Tiktok
if (db.data.group[m.chat].antilinktt) {
if (budy.match(`https://vt.tiktok.com`)) {
newReply(`「 ANTI LINK TIKTOK 」\n\nKamu Terdeteksi Mengirim Link TikTok, Maaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
if (isAdmins) return newReply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return newReply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
//AntiVirtex
if (db.data.group[m.chat].antivirtex) {
if (budy.length > 3500) {
newReply(`Seseorang mengirim spam virus!! tandai sebagai membaca⚠️\n`.repeat(300))
newReply(`「 ANTI VIRTEX 」\n\nKamu Terdeteksi Mengirim Virtex, Maaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
if (isAdmins) return newReply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return newReply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
if (db.data.group[m.chat].antisettings) {
if (budy.startsWith('wa.me/settings')) {
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (!isBotAdmins) return newReply(`Ehh Bot Gak Admin T_T`)
conn.sendMessage(m.chat, { delete: m.key })
}
}
// Mute Chat
if (db.data.group[m.chat].mute && !isAdmins && !isCreator) {
return
}
switch (command) {
// Premium
case 'daftar':
if (isRegistered) return newReply('Kamu sudah terdaftar')
if (!q.includes('|')) return newReply('Format salah!')
const namaUser = q.substring(0, q.indexOf('|') - 0)
const umurUser = q.substring(q.lastIndexOf('|') + 1)
const serialUser = createSerial(20)
if(isNaN(umurUser)) return newReply('Umur harus berupa angka!!')
if (namaUser.length >= 30) return newReply(`why is your name so long it's a name or a train`)
if (umurUser > 40) return newReply(`your age is too old maximum 40 years`)
if (umurUser < 12) return newReply(`your age is too young minimum 12 years`)
mzd = `Kamu telah terdaftar dengan informasi sebagai berikut:\n\n⭔ Nama : ${namaUser}\n⭔ Umur : ${umurUser}\n⭔ Nomor : wa.me/${m.sender.split("@")[0]}\n⭔ Waktu Pendaftaran : ${wib}\n⭔ NS : ${serialUser}`
zharzx = fs.readFileSync('./media/reg.jpg')
veri = m.sender
if (!m.isGroup) {
addRegisteredUser(m.sender, namaUser, umurUser, serialUser)
conn.sendMessage(m.chat, {image: zharzx, caption: mzd}, {quoted: m})
} else {
addRegisteredUser(m.sender, namaUser, umurUser, serialUser)
conn.sendMessage(m.chat, {image: zharzx, caption: mzd}, {quoted: m})
}
break
case 'paptt':
if (!isPremium) return newReply(mess.prem)
if (!q) return newReply(`Example ${prefix + command} foto/video`)
let papttfoto = JSON.parse(fs.readFileSync('./lib/paptt-foto.json'))
let papttvideo = JSON.parse(fs.readFileSync('./lib/paptt-video.json'))
let titid1 = (pickRandom(papttfoto))
let titid2 = (pickRandom(papttvideo))
if (q == 'foto') {
newReply("Foto Akan Dikirim Lewat Private Chat ( *PC* )")
conn.sendMessage(m.sender, { image: { url: titid1 }, caption: 'Mana Tahan🥵'}, { quoted: fkontak })
} else if (q == 'video') {
newReply("Video Akan Dikirim Lewat Private Chat ( *PC* )")
conn.sendMessage(m.sender, { video: { url: titid2 }, caption: 'Mana Tahan🥵'}, { quoted: fkontak })
}
break
case 'buatgc':
if (!isPremium) return newReply(mess.prem)
if (!text) return newReply('_Masukkan Nama Grup!_')
try{
newReply(mess.wait)
let group = await conn.groupCreate(text, [m.sender])
let link = await conn.groupInviteCode(group.gid)
let url = 'https://chat.whatsapp.com/' + link;
/// console.log(chalk.bold.red('Membuat Grup: ' + group.gid + '\nNama Grup: ' + text + '\n\nViolet'))
newReply('_Berhasil Membuat Grup *' + text + '*_\n\n*Nama:* ' + text + '\n*ID:* ' + group.gid + '\n*Link:* ' + url)
} catch (e) {
let [namagc, partici] = text.split('|')
if (!namagc) return newReply('Format Salah!!!')
if (!partici) return newReply('Tag user sebagai member baru!')
let mem = conn.parseMention(`@${parseInt(m.sender)} ${partici}`)
let ha = await conn.groupCreate(namagc, mem).catch(console.error)
console.log(JSON.stringify(ha));
await newReply(`*GROUP CREATE*
\`\`\`Group Telah Dibuat @${m.sender.replace(/@.+/, '')}\`\`\`
${JSON.stringify(ha.participants)}`)
conn.groupMakeAdmin(ha.gid, [m.sender])
if (!isCreator) {
await conn.modifyChat(ha.gid, 'delete', {
includeStarred: false
}).catch(console.error)
conn.groupLeave(ha.gid)
}
}
break
// Owner Fitur
case 'ambilcase':
try{
if (!isCreator) return newReply(mess.owner)
if (!q) return newReply(`Example: ${prefix + command} antilink`)
if(q.startsWith(prefix)) return newReply("Query tidak boleh menggunakan prefix")
let nana = await getCase(q)
newReply(nana)
} catch(err){
console.log(err)
newReply(`Case ${q} tidak di temukan`)
}
break
case 'cekapikey':
if (!isCreator) return newReply(mess.owner)
let lol = await fetchJson(`https://api.lolhuman.xyz/api/checkapikey?apikey=${apikey}`)
newReply(mess.wait)
if (lol.message == 'success') {
let ani = `• *ɴᴀᴍᴇ:* ${lol.result.username}
• *ᴛᴏᴛᴀʟ ʜɪᴛ:* ${lol.result.requests}
• *ʜɪᴛ ᴛᴏᴅᴀʏ:* ${lol.result.today}
• *ᴀᴄᴄᴏᴜɴᴛ:* ${lol.result.account_type}
• *ᴇxᴘɪʀᴇᴅ:* ${lol.result.expired}`
conn.sendMessage(m.chat, { image: thumb, caption: ani }, { quoted: fkontak })
} else m.reply('ɪɴᴠᴀʟɪᴅ ᴀᴘɪᴋᴇʏ !')
break
case 'ambilsesi':
if (!isCreator) return newReply(mess.owner)
newReply('Tunggu Sebentar, Sedang mengambil file sesi mu')
let sesi = await fs.readFileSync('./session/creds.json')
conn.sendMessage(m.chat, { document: sesi, mimetype: 'application/json', fileName: 'creds.json' }, { quoted: m })
break
case 'autoread':
if (!isCreator) return newReply(mess.owner)
if (args.length < 1) return newReply(`Contoh ${prefix + command} on/off`)
if (q === 'on'){
global.db.data.settings[botNumber].autoread = true
newReply(`Berhasil mengubah autoread ke ${q}`)
} else if (q === 'off'){
global.db.data.settings[botNumber].autoread = false
newReply(`Berhasil mengubah autoread ke ${q}`)
}
break
case 'autobio':
if(!isCreator) return newReply(mess.owner)
if (args.length < 1) return newReply(`Example ${prefix + command} on/off`)
if (q == 'on'){
global.db.data.settings[botNumber].autobio = true
newReply(`Berhasil Mengubah AutoBio Ke ${q}`)
} else if (q == 'off'){
global.db.data.settings[botNumber].autobio = false
newReply(`Berhasil Mengubah AutoBio Ke ${q}`)
}
break
case 'public': {
if (!isCreator) return newReply(mess.owner)
conn.public = true
newReply('Sukses Ubah Ke Penggunaan Umum')
}
break
case 'self': {
if (!isCreator) return newReply(mess.owner)
conn.public = false
newReply('Sukses Ubah Ke Penggunaan Sendiri')
}
break
case 'addlist':
if (!m.isGroup) return newReply(mess.group)
if (!isAdmins && !isCreator) return newReply(mess.botAdmin)
var args1 = q.split("@")[0]
var args2 = q.split("@")[1]
if (!q.includes("@")) return newReply(`Gunakan dengan cara ${command} *key@response*\n\n_Contoh_\n\n#${command} tes@apa`)
if (isAlreadyResponList(m.chat, args1, db_respon_list)) return newReply(`List respon dengan key : *${args1}* sudah ada di group ini.`)
addResponList(m.chat, args1, args2, false, '-', db_respon_list)
newReply(`Berhasil menambah List menu : *${args1}*`)
break
case 'dellist':{
if (!m.isGroup) return newReply(mess.group)
if (!isAdmins && !isCreator) return newReply(mess.botAdmin)
if (db_respon_list.length === 0) return newReply(`Belum ada list message di database`)
var arr_rows = [];
for (let x of db_respon_list) {
if (x.id === m.chat) {
newReply(`Mau Delete Yang Mana?\n\n${x.key}`)
}}
}
break
case 'enc': {
if (!isCreator) return newReply(mess.owner)
if (!q) return newReply(`Contoh ${prefix+command} const adrian = require('adrian-api')`)
let meg = await obfus(q)
newReply(`${meg.result}`)
}
break
case 'pushkontak': {
if (!text) return newReply(`Example ${prefix}${command} Hi Semuanya`)
if (!isCreator) return newReply(mess.owner)
let get = await participants.filter(v => v.id.endsWith('.net')).map(v => v.id);
let count = get.length;
let sentCount = 0;
newReply('*_Sedang Push Kontak..._*');
for (let i = 0; i < get.length; i++) {
setTimeout(function() {
conn.sendMessage(get[i], { text: text });
count--;
sentCount++;
if (count === 0) {
newReply(`*_Semua pesan telah dikirim!_*:\n*_Jumlah pesan terkirim:_* *_${sentCount}_*`);
}
}, i * 1000); // delay setiap pengiriman selama 1 detik
}
}
break
case 'addvn':{
if (!isCreator) return newReply(mess.owner)
if (args.length < 1) return newReply('Nama audionya apa')
if (vnnya.includes(q)) return newReply("Nama tersebut sudah di gunakan")
let delb = await conn.downloadAndSaveMediaMessage(quoted)
vnnya.push(q)
await fsx.copy(delb, `./database/AUDIO/${q}.mp3`)
fs.writeFileSync('./database/vnnya.json', JSON.stringify(vnnya))
fs.unlinkSync(delb)
newReply(`Sukses Menambahkan Audio\nCek dengan cara ${prefix}listvn`)
}
break
case 'delvn':{
if (!isCreator) return newReply(mess.owner)
if (args.length < 1) return newReply('Masukan query')
if (!vnnya.includes(q)) return newReply("Nama tersebut tidak ada di dalam data base")
let wanu = vnnya.indexOf(q)
vnnya.splice(wanu, 1)
fs.writeFileSync('./database/vnnya.json', JSON.stringify(vnnya))
fs.unlinkSync(`./database/AUDIO/${q}.mp3`)
newReply(`Sukses delete vn ${q}`)
}
break
case 'listvn':{
let teksooo = '┌──⭓「 *LIST VN* 」\n│\n'
for (let x of vnnya) {
teksooo += `│⭔ ${x}\n`
}
teksooo += `│\n└────────────⭓\n\n*Total ada : ${vnnya.length}*`
newReply(teksooo)
}
break
case 'addprem':
if (!isCreator) return newReply(mess.owner)
if (!args[0]) return newReply(`Penggunaan ${prefix+command} nomor\nContoh ${prefix+command} 6285731389178`)
bnnd = q.split("|")[0].replace(/[^0-9]/g, '')
let ceknye = await conn.onWhatsApp(bnnd + `@s.whatsapp.net`)
if (ceknye.length == 0) return newReply(`Masukkan Nomor Yang Valid Dan Terdaftar Di WhatsApp!!!`)
premium.push(bnnd)
fs.writeFileSync('./database/premium.json', JSON.stringify(premium))
newReply(mess.done)
break
case 'delprem':
if (!isCreator) return newReply(mess.owner)
if (!args[0]) return newReply(`Penggunaan ${prefix+command} nomor\nContoh ${prefix+command} 6285731389178`)
yaki = q.split("|")[0].replace(/[^0-9]/g, '')
unp = premium.indexOf(yaki)
premium.splice(unp, 1)
fs.writeFileSync('./database/premium.json', JSON.stringify(premium))
newReply(mess.done)
break
case 'listprem':
teksooo = '*List Premium*\n\n'
for (let i of premium) {
teksooo += `- ${i}\n`
}
teksooo += `\n*Total : ${premium.length}*`
conn.sendMessage(m.chat, { text: teksooo.trim() }, 'extendedTextMessage', { quoted: m, contextInfo: { "mentionedJid": premium } })
break
case 'myip': {
if (!isCreator) return newReply(mess.owner)
var http = require('http')
http.get({
'host': 'api.ipify.org',
'port': 80,
'path': '/'
}, function(resp) {
resp.on('data', function(ip) {
newReply("🔎 My public IP address is: " + ip);
})
})
}
break
case 'listpc': {
if (!isCreator) return newReply(mess.owner)
let anu = await store.chats.all().filter(v => v.id.endsWith('.net')).map(v => v.id)
let tekslist = `*🔒 LIST PERSONAL CHAT*\n\n`
tekslist += `*📱 Total Chat :* ${anu.length} Chat\n\n`
for (let i of anu) {
let nama = store.messages[i].array[0].pushName
tekslist += `📛 *Nama :* ${nama}\n`
tekslist += `👤 *User :* @${i.split('@')[0]}\n`
tekslist += `🔗 *Link Chat :* https://wa.me/${i.split('@')[0]}\n\n`
tekslist += `──────────────────────\n\n`
}
newReply(tekslist)
}
break
case 'listgc': {
if (!isCreator) return newReply(mess.owner)
let anu = await store.chats.all().filter(v => v.id.endsWith('@g.us')).map(v => v.id)
let tekslistgc = `👥 *LIST GROUP CHAT*\n\n`
tekslistgc += `📱 Total Group : ${anu.length} Group\n\n`
for (let e of anu) {
let metadata = await conn.groupMetadata(e)
tekslistgc += `📛 *Nama :* ${metadata.subject}\n`
tekslistgc += `👤 *Owner Grup :* ${metadata.owner !== undefined ? '@' + metadata.owner.split`@`[0] : 'Tidak diketahui'}\n`
tekslistgc += `🌱 *ID :* ${metadata.id}\n`
tekslistgc += `⏳ *Dibuat :* ${moment(metadata.creation * 1000).tz('Asia/Jakarta').format('DD/MM/YYYY HH:mm:ss')}\n`
tekslistgc += `👥 *Member :* ${metadata.participants.length}\n\n`
tekslistgc += `──────────────────────\n\n`
}
newReply(tekslistgc)
}
break
case 'chat': {
if (!isCreator) return newReply(mess.owner)
if (!q) return newReply('Option : 1. mute\n2. unmute\n3. archive\n4. unarchive\n5. read\n6. unread\n7. delete')
if (args[0] === 'mute') {
conn.chatModify({ mute: 'Infinity' }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'unmute') {
conn.chatModify({ mute: null }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'archive') {
conn.chatModify({ archive: true }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'unarchive') {
conn.chatModify({ archive: false }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'read') {
conn.chatModify({ markRead: true }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'unread') {
conn.chatModify({ markRead: false }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
} else if (args[0] === 'delete') {
conn.chatModify({ clear: { message: { id: m.quoted.id, fromMe: true }} }, m.chat, []).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
}
}
break
case 'react': {
if (!isCreator) return newReply(mess.owner)
if (!args[0]) return newReply(`Example: ${prefix + command} Titid`)
reactionMessage = {
react: {
text: args[0],
key: { remoteJid: m.chat, fromMe: true, id: quoted.id }
}
}
conn.sendMessage(m.chat, reactionMessage)
}
break
case 'shutdown': {
if (!isCreator) return newReply(mess.owner)
newReply(`Otsukaresama deshita🖐`)
await sleep(3000)
process.exit()
}
break
case 'join': {
if (!isCreator) return newReply(mess.owner)
if (!text) return newReply('Masukkan Link Group!')
if (!isUrl(args[0]) && !args[0].includes('whatsapp.com')) return newReply('Link Invalid!')
newReply(mess.wait)
let result = args[0].split('https://chat.whatsapp.com/')[1]
await conn.groupAcceptInvite(result).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
}
break
case 'leave': {
if (!isCreator) return newReply(mess.owner)
await conn.groupLeave(m.chat).then((res) => newReply(jsonformat(res))).catch((err) => newReply(jsonformat(err)))
}
break
case 'setexif': {
if (!isCreator) return newReply(mess.owner)
if (!text) return newReply(`Contoh : ${prefix + command} packname|author`)
global.packname = text.split("|")[0]
global.author = text.split("|")[1]
newReply(`Exif berhasil diubah menjadi\n\n• Packname : ${global.packname}\n• Author : ${global.author}`)
}
break
case 'setpp':
case 'setpp':
case 'setppbot': {
if (!isCreator) return newReply(mess.owner)
if (!quoted) return newReply(`Kirim/Reply Image Dengan Caption ${prefix + command}`)
if (!/image/.test(mime)) return newReply(`Kirim/Reply Image Dengan Caption ${prefix + command}`)
if (/webp/.test(mime)) return newReply(`Kirim/Reply Image Dengan Caption ${prefix + command}`)
var medis = await conn.downloadAndSaveMediaMessage(quoted, 'ppbot.jpeg')
if (args[0] == 'full') {
var { img } = await generateProfilePicture(medis)
await conn.query({
tag: 'iq',
attrs: {
to: botNumber,
type:'set',
xmlns: 'w:profile:picture'
},
content: [
{
tag: 'picture',
attrs: { type: 'image' },
content: img
}
]
})
fs.unlinkSync(medis)
reply(mess.success)
} else {
var memeg = await conn.updateProfilePicture(botNumber, { url: medis })
fs.unlinkSync(medis)
newReply(`Sukses`)
}
}
break
// Main Menu
case 'owner':
case 'creator': {
const vcard =
'BEGIN:VCARD\n' + // metadata of the contact card
'VERSION:3.0\n' +
`FN:${namaowner}\n` + // full name
`ORG:${namabot};\n` + // the organization of the contact
`TEL;type=MSG;type=CELL;type=VOICE;waid=${owner}:+${owner}\n` + // WhatsApp ID + phone number
'END:VCARD'
conn.sendMessage(m.chat, {
contacts: {
displayName: namaowner,
contacts: [{ vcard }],
},
}, { quoted: fkontak})
}
break
case 'ceklimit':
case 'checklimit':
case 'limit':{
newReply('*Limit Lu :* ' + (db.data.users[m.sender].limit))
}
break
case 'buyprem': {
const buyprem = `╭─❒ 「 *𝐏𝐑𝐄𝐌𝐈𝐔𝐌* 」
│ 𝐏𝐀𝐊𝐄𝐓 30 𝐃𝐀𝐘𝐒
│○ pengguna baru rp. 20.000
│○ perpanjang rp. 5.000
│○ masa waktu 30 hari
╰─❒
minat prem pm ${nomorlu}
╭─❒ 「 🤖 *𝐉𝐀𝐃𝐈𝐁𝐎𝐓* 🤖 」
│ 𝐏𝐀𝐊𝐄𝐓 30 𝐃𝐀𝐘𝐒
│○ pengguna baru rp. 25.000
│○ perpanjang rp. 15.000
│○ masa waktu 30 hari
╰─❒
keuntungan jadibot :
tinggal scan whatsapp kita jadibot,
owner menjadi nomor kita,
thumbnail/logo/namabot boleh req, dll.
minat jadibot? pm wa.me/6285731389178`
newReply(buyprem)
}
break
case 'spamsms': {
if (!isCreator) return newReply(mess.owner)
const froms = m.quoted ? m.quoted.sender : q.replace(/[^0-9]/g, '')+'@s.whatsapp.net'
if (m.quoted || q) {
if (froms.startsWith('08')) return newReply('Awali nomor dengan +62')
if (froms == owner) return newReply('Tidak bisa spam ke nomor ini!')
let nosms = '+' + froms.replace('@s.whatsapp.net', '')
let mal = ["Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v7108827108815046027 t6205049005192687891", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v1692361810532096513 t9071033982482470646", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v4466439914708508420 t8068951106021062059", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v8880767681151577953 t8052286838287810618", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 RuxitSynthetic/1.0 v6215776200348075665 t6662866128547677118", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v1588190262877692089 t2919217341348717815", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36 RuxitSynthetic/1.0 v5330150654511677032 t9071033982482470646", "Mozilla/5.0 (Linux; Android 10; M2006C3LG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36", "Mozilla/5.0 (Linux; Android 10; M2006C3LG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36", "Mozilla/5.0 (Linux; Android 11; vivo 2007) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36"]
let ua = mal[Math.floor(Math.random() * mal.length)];
let axios = require('axios').default;
let hd = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'
};
const dat = {
'phone': nosms
};
for (let x = 0; x < 100; x++) {
axios.post('https://api.myfave.com/api/fave/v1/auth', dat, {
headers: hd
}).then(res => {
console.log(res);
}).catch(err => {
console.log(`[${new Date().toLocaleTimeString()}] Spam (SMS) BY IOX`);
});
}
} else newReply(`Penggunaan spamsms nomor/reply pesan target*\nContoh spamsms +${nomorlu}`)
newReply(`Otw Boskuuu`)
}
break
case 'call':
if (!isCreator) return newReply(mess.owner)
if (!args[0]) return newReply(`Penggunaan ${prefix+command} nomor\nContoh ${prefix+command} +${nomorlu}`)
let nosend = "+" + q.split("|")[0].replace(/[^0-9]/g, '')
if (args[0].startsWith(`+${nomorlu}`)) return newReply('Tidak bisa call ke nomor ini!')
axios.post('https://magneto.api.halodoc.com/api/v1/users/authentication/otp/requests',{'phone_number':`${nosend}`,'channel': 'voice'},{headers: {'authority': 'magneto.api.halodoc.com','accept-language': 'id,en;q=0.9,en-GB;q=0.8,en-US;q=0.7','cookie': '_gcl_au=1.1.1860823839.1661903409; _ga=GA1.2.508329863.1661903409; afUserId=52293775-f4c9-4ce2-9002-5137c5a1ed24-p; XSRF-TOKEN=12D59ACD8AA0B88A7ACE05BB574FAF8955D23DBA28E8EE54F30BCB106413A89C1752BA30DC063940ED30A599C055CC810636; _gid=GA1.2.798137486.1664887110; ab.storage.deviceId.1cc23a4b-a089-4f67-acbf-d4683ecd0ae7=%7B%22g%22%3A%2218bb4559-2170-9c14-ddcd-2dc80d13c3e3%22%2C%22c%22%3A1656491802961%2C%22l%22%3A1664887110254%7D; amp_394863=nZm2vDUbDAvSia6NQPaGum...1gehg2efd.1gehg3c19.f.0.f; ab.storage.sessionId.1cc23a4b-a089-4f67-acbf-d4683ecd0ae7=%7B%22g%22%3A%22f1b09ad8-a7d9-16f3-eb99-a97ba52677d2%22%2C%22e%22%3A1664888940400%2C%22c%22%3A1664887110252%2C%22l%22%3A1664887140400%7D','origin': 'https://www.halodoc.com','sec-ch-ua': '"Microsoft Edge";v="105", "Not)A;Brand";v="8", "Chromium";v="105"','sec-ch-ua-mobile': '?0','sec-ch-ua-platform': '"Windows"','sec-fetch-dest': 'empty','sec-fetch-mode': 'cors','sec-fetch-site': 'same-site','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53','x-xsrf-token': '12D59ACD8AA0B88A7ACE05BB574FAF8955D23DBA28E8EE54F30BCB106413A89C1752BA30DC063940ED30A599C055CC810636'}}).then(function (response) {reply(`${JSON.stringify(response.data, null, 2)}`)}).catch(function (error) {reply(`${JSON.stringify(error, null, 2)}`)})
newReply(`Otw boskuuu`)
break
case 'tes':
newReply('Dah nyala bang')
conn.sendMessage(m.chat, {audio: fs.readFileSync('./vn.mp3'), ptt: true,
seconds: 360000000,
waveform: [
100,0,100,0,100,0,100
],
mimetype: 'audio/mpeg'}, { quoted: m })
break
case 'runtime':
newReply(`*Bot Telah Online Selama*\n*${runtime(process.uptime())}*`)
break
case 'donate': case 'donasi':
const donatt = `*-------「 DONATE 」 -------*
*Qris All Payment*
Kalian bisa mendukung saya agar bot ini tetap update dengan cara donasi,
Berapapun donasi kalian akan sangat berarti 👍
Makasih Yang Udah Donasi 😊`
conn.sendMessage(m.chat, { image: fs.readFileSync('./media/qris.jpg'), caption: donatt }, { quoted : m })
break;
case 'totalfitur':
case 'fitur':
newReply(`Total Fitur ${namabot} Adalah ${totalFitur()}`)
break
case 'pembayaran':{
newReply(`- qris`)
}
break
case 'pqris': {
conn.sendMessage(m.chat, { image: qris, caption: `qris : scan aja kak` }, {quoted:m})
}
break
case 'speed': {