-
Notifications
You must be signed in to change notification settings - Fork 156
/
main.js
3004 lines (2745 loc) · 147 KB
/
main.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
const gradient = require('gradient-string')
const { exec, spawn, execSync } = require("child_process");
const {rob, bal, reg, work, mine, buy, afk, claim, levelxd, tranferSdw, quitardolares, addDolares, cazar, lb} = require('./economy/economy.js')
const {toqr, fakechat} = require('./extras/extras.js')
const { default: makeWASocket, proto } = require("@whiskeysockets/baileys")
const yts = require('yt-search')
const gpt = require('api-dylux')
const ytdl = require('ytdl-core')
const {savefrom, lyrics, lyricsv2, youtubedl, youtubedlv2} = require('@bochilteam/scraper')
const axios = require('axios')
const cheerio = require('cheerio')
const util = require('util')
const createHash = require('crypto')
const mimetype = require("mime-types")
const {game1, gameMate} = require('./libs/games.js')
const webp = require("node-webpmux")
const {yt, acortar, google, imagen, tran, tts, ia, ssw, kataAnime, planetnime, aptoide, pinteresdw} = require('./busc/buscadores.js')
const Jimp = require('jimp')
const { File } = require("megajs")
const scp1 = require('./libs/scraper')
const { facebook } = require('./libs/facebook')
const { instagram } = require('./libs/instagram')
const { antiSpam } = require('./libs/antispam')
const { jadibot, listJadibot, killJadibot } = require('./serbot.js')
// const { youtubedl, snapsave } = require("@bochilteam/scraper")
const JavaScriptObfuscator = require('javascript-obfuscator')
const {nsfw} = require('./plugins/nsfw.js')
const { game } = require('./plugins/game.js')
const { play } = require('./plugins/play.js')
const { mp3 } = require('./plugins/ytmp3.js')
const { youtube } = require("@xct007/frieren-scraper")
const { jadibot2 } = require('./serbot2.js')
const speed = require("performance-now")
const ffmpeg = require("fluent-ffmpeg")
const color = (text, color) => {
return !color ? chalk.cyanBright(text) : color.startsWith('#') ? chalk.hex(color)(text) : chalk.keyword(color)(text)} // Si no hay color, utilizar el color celeste brillante (por defecto)
const { smsg, fetchBuffer, buffergif, getGroupAdmins, formatp, tanggal, formatDate, getTime, isUrl, sleep, clockString, runtime, fetchJson, getBuffer, jsonformat, delay, format, logic, generateProfilePicture, parseMention, getRandom, remini, participantes, pickRandom, spotifydl, pepe, webp2mp4File } = require('./libs/fuctions')
const { WaMessageStubType, areJidsSameUser, downloadContentFromMessage, generateWAMessageContent, generateWAMessageFromContent, generateWAMessage, prepareWAMessageMedia, relayMessage} = require('@whiskeysockets/baileys'); // Importa los objetos 'makeWASocket' y 'proto' desde el módulo '@whiskeysockets/baileys'
const { ytmp4, ytmp3, ytplay, ytplayvid } = require('./libs/youtube')
const { menu } = require('./plugins/menu.js')
const { menu2 } = require('./plugins/menu2.js')
const { mediafireDl } = require('./libs/mediafire.js')
const { state } = require('./plugins/info.js')
const msgs = (message) => {
if (message.length >= 10) {
return `${message.substr(0, 500)}`
} else {
return `${message}`}}
const getFileBuffer = async (mediakey, MediaType) => {
const stream = await downloadContentFromMessage(mediakey, MediaType)
let buffer = Buffer.from([])
for await(const chunk of stream) {
buffer = Buffer.concat([buffer, chunk]) }
return buffer
}
module.exports = conn = async (conn, m, chatUpdate, mek, store) => {
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) : ''
//----------------------[ ATRIBUTOS ]-------------------------
if (m.key.id.startsWith("BAE5")) return
var budy = (typeof m.text == 'string' ? m.text : '')
var prefix = /^[°•π÷׶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi.test(body) ? body.match(/^[°•π÷׶∆£¢€¥®™+✓_=|~!?@#$%^&.©^]/gi)[0] : ""
//var prefix = body.match(/^[/.*#]/)
const isCmd = body.startsWith(prefix)
const command = isCmd ? body.slice(1).trim().split(/ +/).shift().toLocaleLowerCase() : null
const args = body.trim().split(/ +/).slice(1)
const from = m.chat
const msg = JSON.parse(JSON.stringify(m, undefined, 2))
const content = JSON.stringify(m.message)
const type = m.mtype
let t = m.messageTimestamp
const pushname = m.pushName || "Sin nombre"
const botnm = conn.user.id.split(":")[0] + "@s.whatsapp.net"
const _isBot = conn.user.jid
const userSender = m.key.fromMe ? botnm : m.isGroup && m.key.participant.includes(":") ? m.key.participant.split(":")[0] + "@s.whatsapp.net" : m.key.remoteJid.includes(":") ? m.key.remoteJid.split(":")[0] + "@s.whatsapp.net" : m.key.fromMe ? botnm : m.isGroup ? m.key.participant : m.key.remoteJid
const isCreator = [conn.decodeJid(conn.user.id), ...global.owner.map(([numero]) => numero)].map((v) => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender);
const isOwner = isCreator || m.fromMe;
const isMods = isOwner || global.mods.map((v) => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender);
//const isCreator = global.owner.map(([numero]) => numero.replace(/[^\d\s().+:]/g, '').replace(/\s/g, '') + '@s.whatsapp.net').includes(userSender)
const itsMe = m.sender == conn.user.id ? true : false
const text = args.join(" ")
const q = args.join(" ")
const quoted = m.quoted ? m.quoted : m
const sender = m.key.fromMe ? botnm : m.isGroup ? m.key.participant : m.key.remoteJid
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
const mime = (quoted.msg || quoted).mimetype || ''
const isMedia = /image|video|sticker|audio/.test(mime)
const mentions = []
if (m.message[type].contextInfo) {
if (m.message[type].contextInfo.mentionedJid) {
const msd = m.message[type].contextInfo.mentionedJid
for (let i = 0; i < msd.length; i++) {
mentions.push(msd[i])}}}
//----------------------[ FUNCION/GRUPO ]-------------------------
const groupMetadata = m.isGroup ? await conn.groupMetadata(from) : ''
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(botnm) : false
const isGroupAdmins = m.isGroup ? groupAdmins.includes(userSender) : false
const isBaneed = m.isGroup ? blockList.includes(userSender) : false
const isPremium = m.isGroup ? premium.includes(userSender) : false
const who = m.quoted ? m.quoted.sender : m.mentionedJid && m.mentionedJid[0] ? m.mentionedJid[0] : m.fromMe ? conn.user.jid : m.sender;
const thumb = fs.readFileSync("./media/menu2.jpg")
const fkontak = { "key": { "participants":"[email protected]", "remoteJid": "status@broadcast", "fromMe": false, "id": "Halo" }, "message": { "contactMessage": { "vcard": `BEGIN:VCARD\nVERSION:3.0\nN:Sy;Bot;;;\nFN:y\nitem1.TEL;waid=${userSender.split('@')[0]}:${userSender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD` }}, "participant": "[email protected]" }
const ftroli ={key: {fromMe: false,"participant":"[email protected]", "remoteJid": "status@broadcast"}, "message": {orderMessage: {itemCount: 2022,status: 200, thumbnail: thumb, surface: 200, message: "ɴᴏᴠᴀʙᴏᴛ-ᴍᴅ", orderTitle: "sᴜᴘᴇʀ ʙᴏᴛ ᴅᴇ ᴡʜᴀᴛsᴀᴘᴘ", sellerJid: '[email protected]'}}, contextInfo: {"forwardingScore":999,"isForwarded":true},sendEphemeral: true}
const fdoc = {key : {participant : '[email protected]', ...(from ? { remoteJid: `status@broadcast` } : {}) },message: {documentMessage: {title: botname, jpegThumbnail: null}}}
const kick = function (from, orangnya) {
for (let i of orangnya) {
conn.groupParticipantsUpdate(m.chat, [i], "remove")}}
const time = moment(Number(msg.messageTimestamp + "000")).locale("es-mx").tz("America/Asuncion").format('MMMM Do YYYY, h:mm:ss a')
const reply = (text) => {
m.reply(text)}
const sendAdMessage = (text, title, body, image, url) => { conn.sendMessage(m.chat, {text: text, contextInfo: { externalAdReply: { title: title, body: body, mediaUrl: url, sourceUrl: url, previewType: 'PHOTO', showAdAttribution: true, thumbnail: image, sourceUrl: url }}}, {})}
const sendImage = ( image, caption ) => { conn.sendMessage(m.chat, { image: image, caption: caption }, {quoted: m, ephemeralExpiration: 24*60*100, disappearingMessagesInChat: 24*60*100})}
const sendImageAsUrl = ( url, caption ) => { conn.sendMessage(m.chat, { image: {url: url }, caption: caption }, {quoted: m, ephemeralExpiration: 24*60*100, disappearingMessagesInChat: 24*60*100})}
//-------------[ TIPOS DE MENSAJES Y CITADOS ]----------------
const isAudio = type == 'audioMessage' // Mensaje de Audio
const isSticker = type == 'stickerMessage' // Mensaje de Sticker
const isContact = type == 'contactMessage' // Mensaje de Contacto
const isLocation = type == 'locationMessage' // Mensaje de Localización
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')
const isQuotedDocument = type === 'extendedTextMessage' && content.includes('documentMessage')
const isQuotedMsg = type === 'extendedTextMessage' && content.includes('Message') // Mensaje citado de cualquier tipo
const isViewOnce = (type === 'viewOnceMessage') // Verifica si el tipo de mensaje es (mensaje de vista única)
// Responder cmd con medios
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)}
//base de datos
let user = global.db.data.users[m.sender]
let chats = global.db.data.users[m.chat]
let setting = global.db.data.settings[conn.user.jid]
let mathGame = global.db.data.game.math = []
let ppt = global.db.data.game.ppt = []
let ttt = global.db.data.game.ppt = []
let tebaklagu = global.db.data.game.tebaklagu = []
let kuismath = global.db.data.game.math = []
let tekateki = global.db.data.game.tekateki = []
//función pickrandow
function pickRandom(list) {
return list[Math.floor(list.length * Math.random())]
}
//autobio
/*if (global.db.data.settings[numBot].autobio) {
let setting = global.db.data.settings[numBot]
if (new Date() * 1 - setting.status > 1000) {
let uptime = await runtime(process.uptime())
const bio = `Shadowʙᴏᴛ-ᴍᴅ | ᴀᴄᴛɪᴠᴏ ✅️: ${runtime(process.uptime())}\n\nᴘᴀʀᴀ ᴠᴇᴢ ᴍɪ ʟɪsᴛᴀ ᴅᴇ ᴄᴏᴍᴀɴᴅᴏ ᴜsᴀʀ #menu`
await conn.updateProfileStatus(bio)
setting.status = new Date() * 1
}} */
//autoread
if (!conn.autoread && m.message && prefix) {
await conn.sendPresenceUpdate('composing', m.chat)
conn.readMessages([m.key])}
//Antispam
/*if (isCmd && antiSpam.isFiltered(from) && !m.isGroup && prefix) {
console.log(color('[ SPAM ]', 'red'), color('', 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname))
return //conn.fakeReply(m.chat, `_Espere unos segundos antes de usar otro comando..._ ✓`, '[email protected]', 'Dejar spam puta')
}
if (isCmd && antiSpam.isFiltered(from) && m.isGroup && prefix) {
console.log(color('[ SPAM ]', 'red'), color(``, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname), 'in', color(groupName))
return //conn.fakeReply(m.chat, `_Espere unos segundos antes de usar otro comando..._ ✓`, '[email protected]', 'Dejar spam puta')
}
if (isCmd && !isCreator) antiSpam.addFilter(from)
if (global.db.data.chats[m.chat].antispam && prefix) {
let user = global.db.data.users[m.sender]
const date = global.db.data.users[m.sender].spam + 3000; //600000
if (new Date - global.db.data.users[m.sender].spam < 3000) return console.log(`[ SPAM ] ➢ ${command} [${args.length}]`)
global.db.data.users[m.sender].spam = new Date * 1;
}*/
//viewOnceMessage
if (m.mtype == 'viewOnceMessageV2') {
if (global.db.data.chats[m.chat].viewonce) return
teks = `\`𝙰𝚀𝚄𝙸 𝙽𝙾 𝚂𝙴 𝙿𝙴𝚁𝙼𝙸𝚃𝙴 𝙾𝙲𝚄𝙻𝚃𝙰𝚁 𝙽𝙰𝙳𝙰\``
let msg = m.message.viewOnceMessageV2.message
let type = Object.keys(msg)[0]
let media = await downloadContentFromMessage(msg[type], type == 'imageMessage' ? 'image' : 'video')
let buffer = Buffer.from([])
for await (const chunk of media) {
buffer = Buffer.concat([buffer, chunk])}
if (/video/.test(type)) {
return conn.sendFile(m.chat, buffer, 'error.mp4', `${msg[type].caption} ${teks}`, m)
} else if (/image/.test(type)) {
return conn.sendFile(m.chat, buffer, 'error.jpg', `${msg[type].caption} ${teks}`, m)
}}
//Antiprivado
if (!m.isGroup && !isCreator) {
//const bot = global.db.data.users[m.sender] || {};
if (global.db.data.settings[numBot].antiprivado) {
conn.sendMessage(m.chat, {text: `[❕] Hola @${sender.split`@`[0]}, está prohibido hablar al privado del bot serás bloqueado.\npuedes usar el bot en: ${nnn}`, mentions: [m.sender], }, {quoted: m})
await delay(2 * 2000)
await conn.updateBlockStatus(m.chat, 'block')
return
}}
//antifake
if (global.db.data.chats[m.chat].antifake && !isGroupAdmins) {
if (m.chat && m.sender.startsWith('1')) return conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')}
if (global.db.data.chats[m.chat].antiarabe && !isGroupAdmins) {
if (m.chat && m.sender.startsWith('212')) return conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')}
//antilink
if (global.db.data.chats[m.chat].antilink) {
if (budy.match(`chat.whatsapp.com`)) {
let delet = m.key.participant
let bang = m.key.id
kice = m.sender
reply(`\`\`\`「 ANTILINK DETECTADO 」\`\`\`\n\n*@${kice.split("@")[0]} sera expulsado del grupo sucia rata 🙄*`)
if (!isBotAdmins) return reply(`El bot necesita admin para eliminar al incluso 🙄`)
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 reply(`Te salvarte el link enviado es de este grupo`)
if (isGroupAdmins) return reply(`Te salvarte perra eres admin jjj`)
conn.sendMessage(m.chat, { delete: { remoteJid: m.chat, fromMe: false, id: bang, participant: delet }})
conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')}}
//modo public & privado
if (!conn.public && !isCreator) {
if (!m.key.fromMe) return }
//Banea chat
if (global.db.data.chats[m.chat].isBanned && !isCreator) {
return }
//modoadmins
if (global.db.data.chats[m.chat].modeadmin && !isGroupAdmins) {
return }
// Tiempo de Actividad del bot
const used = process.memoryUsage()
const cpus = os.cpus().map(cpu => {
cpu.total = Object.keys(cpu.times).reduce((last, type) => last + cpu.times[type], 0)
return cpu
})
//conn.sendReadReceipt(from,sender,[m.key.id])
const cpu = cpus.reduce((last, cpu, _, { length }) => {
last.total += cpu.total
last.speed += cpu.speed / length
last.times.user += cpu.times.user
last.times.nice += cpu.times.nice
last.times.sys += cpu.times.sys
last.times.idle += cpu.times.idle
last.times.irq += cpu.times.irq
return last
}, {
speed: 0,
total: 0,
times: {
user: 0,
nice: 0,
sys: 0,
idle: 0,
irq: 0
}})
// ‿︵‿︵ʚɞ『 INFO CONSOLE 』ʚɞ‿︵‿︵
if (m.message) {
console.log(chalk.bold.cyanBright(`▣────────────···\n│${botname} ${conn.user.id == global.numBot2 ? '' : '(jadibot)'}`),
chalk.bold.magenta('\n│⏰HORARIO: ') + chalk.magentaBright(moment(t * 1000).tz(place).format('DD/MM/YY HH:mm:ss'),
chalk.bold.yellow('\n│📑TIPO (SMS): ') + chalk.yellowBright(`${type}`),
chalk.bold.cyan('\n│📊USUARIO: ') + chalk.cyanBright(pushname) + ' ➜', gradient.rainbow(userSender),
m.isGroup ? chalk.bold.greenBright('\n│📤GRUPO: ') + chalk.greenBright(groupName) + ' ➜ ' + gradient.rainbow(from) : chalk.bold.greenBright('\n│📥PRIVADO'),
//chalk.bold.red('\nETIQUETA: ') + chalk.redBright(`[${isBaneed ? 'Banned' : ''}]`),
chalk.bold.white('\n│💬MENSAJE: ') + chalk.whiteBright(`\n▣────────────···\n${msgs(m.text)}\n`))
)}
//TicTacToe
let winScore = 4999
let playScore = 99
this.game = this.game ? this.game : {}
let room13 = Object.values(this.game).find(room13 => room13.id && room13.game && room13.state && room13.id.startsWith('tictactoe') && [room13.game.playerX, room13.game.playerO].includes(m.sender) && room13.state == 'PLAYING')
if (room13) {
let ok
let isWin = !1
let isTie = !1
let isSurrender = !1
//reply(`[DEBUG]\n${parseInt(m.text)}`)
if (!/^([1-9]|(me)?give up|surr?ender|off|skip)$/i.test(m.text)) return
isSurrender = !/^[1-9]$/.test(m.text)
if (m.sender !== room13.game.currentTurn) {
if (!isSurrender) return !0
}
if (!isSurrender && 1 > (ok = room13.game.turn(m.sender === room13.game.playerO, parseInt(m.text) - 1))) {
m.reply({'-3': 'El juego ha terminado',
'-2': 'Inválido',
'-1': 'Posición inválida',
0: 'Posición inválida', }[ok])
return !0
}
if (m.sender === room13.game.winner) isWin = true
else if (room13.game.board === 511) isTie = true
let arr = room13.game.render().map(v => {
return {X: '❎',
O: '❌',
1: '1️⃣',
2: '2️⃣',
3: '3️⃣',
4: '4️⃣',
5: '5️⃣',
6: '6️⃣',
7: '7️⃣',
8: '8️⃣',
9: '9️⃣',
}[v]})
if (isSurrender) {
room13.game._currentTurn = m.sender === room13.game.playerX
isWin = true
}
let winner = isSurrender ? room13.game.currentTurn : room13.game.winner
let str = `🫂 𝙹𝚄𝙶𝙰𝙳𝙾𝚁𝙴𝚂
*═════════*
❎ = @${room13.game.playerX.split('@')[0]}
❌ = @${room13.game.playerO.split('@')[0]}
*═════════*
${arr.slice(0, 3).join('')}
${arr.slice(3, 6).join('')}
${arr.slice(6).join('')}
*═════════*
${isWin ? `@${winner.split('@')[0]} 😎🏆 *GANASTE!!*\n*POR HABER GANADO OBTIENES:* ${winScore} XP` : isTie ? `*EMPATE!!* 🤨\n` : `𝚃𝚄𝚁𝙽𝙾 𝙳𝙴 : ${['❎', '❌'][1 * room13.game._currentTurn]} (@${room13.game.currentTurn.split('@')[0]})`}` //`
let users = global.db.data.users
if ((room13.game._currentTurn ^ isSurrender ? room13.x : room13.o) !== m.chat)
room13[room13.game._currentTurn ^ isSurrender ? 'x' : 'o'] = m.chat
if (room13.x !== room13.o) await conn.sendText(room13.x, str, m, { mentions: parseMention(str) } )
await conn.sendText(room13.o, str, m, { mentions: parseMention(str) } )
if (isTie || isWin) {
users[room13.game.playerX].exp += playScore
users[room13.game.playerO].exp += playScore
delete this.game[room13.id]
if (isWin)
users[winner].exp += winScore - playScore
}}
//math
if (kuismath.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = kuismath[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
const exp = Math.floor(Math.random() * 600)
global.db.data.users[m.sender].exp += exp;
await conn.sendButton(m.chat, `*𝚁𝙴𝚂𝙿𝚄𝙴𝚂 𝙲𝙾𝚁𝚁𝙴𝙲𝚃𝙰!!*\n*𝙷𝙰𝚉 𝙶𝙰𝙽𝙰𝙳𝙾: ${exp} `, `xd`, null, [['𝚅𝙾𝙻𝚅𝙴𝚁 𝙰 𝙹𝚄𝙶𝙰𝚁', `.math ${math.mode}`]], null, null, m)
m.react(`✅`)
delete kuismath[m.sender.split('@')[0]]
} else m.react(`❌`)}
//afk
let mentionUser = [...new Set([...(m.mentionedJid || []), ...(m.quoted ? [m.quoted.sender] : [])])]
for (let jid of mentionUser) {
let user = global.db.data.users[jid]
if (!user) continue
let afkTime = user.afkTime
if (!afkTime || afkTime < 0) continue
let reason = user.afkReason || ''
m.reply(`💤 𝙽𝙾 𝙻𝙾𝚂 𝙴𝚃𝙸𝚀𝚄𝙴𝚃𝙴 💤\n𝙴𝚜𝚝𝚎 𝚞𝚜𝚞𝚊𝚛𝚒𝚘 𝚚𝚞𝚎 𝚖𝚎𝚗𝚌𝚒𝚘𝚗𝚊𝚜 𝚎𝚜𝚝𝚊 𝙰𝙵𝙺\n\n${reason ? '🔸️ *𝚁𝙰𝚉𝙾𝙽* : ' + reason : '🔸️ *𝚁𝙰𝚉𝙾𝙽* : 𝚂𝚒𝚗 𝚛𝚊𝚣𝚘𝚗'}\n🔸️ *𝙴𝚂𝚃𝚄𝚅𝙾 𝙸𝙽𝙰𝙲𝚃𝙸𝚅𝙾 𝙳𝚄𝚁𝙰𝙽𝚃𝙴 : ${clockString(new Date - afkTime)}`.trim())}
if (global.db.data.users[m.sender].afkTime > -1) {
let user = global.db.data.users[m.sender]
m.reply(`╭━─━─━─≪☣️≫─━─━─━╮\n┃𝙳𝙴𝙹𝙰𝚂𝚃𝙴 𝙳𝙴 𝙴𝚂𝚃𝙰R 𝙰𝙵𝙺\n┃${user.afkReason ? '\n┃🔸️ *𝚁𝙰𝚉𝙾𝙽 :* ' + user.afkReason : ''}\n┃🔸 *𝙴𝚂𝚃𝚄𝚅𝙾 𝙸𝙽𝙰𝙲𝚃𝙸𝚅𝙾 𝙳𝚄𝚁𝙰𝙽𝚃𝙴* ${clockString(new Date - user.afkTime)}\n╰━─━─━─≪☣️≫─━─━─━╯`.trim())
user.afkTime = -1
user.afkReason = ''
}
if (m.mtype === 'interactiveResponseMessage') {
let msg = m.message[m.mtype] || m.msg
if (msg.nativeFlowResponseMessage && !m.isBot ) {
let { id } = JSON.parse(msg.nativeFlowResponseMessage.paramsJson) || {}
if (id) {
let emit = {
key : { ...m.key } ,
message:{ extendedTextMessage : { text : id } } ,
pushName : m.pushName,
messageTimestamp : m.messageTimestamp || 754785898978
}
return conn.ev.emit('messages.upsert', { messages : [ emit ] , type : 'notify'})
}}}
//ARRANCA LA DIVERSIÓN
switch (prefix && command) {
case 'instagram':
case 'ig':
case 'igdl': {
try {
if (args.length === 0) {
return m.reply("*◦ Ingresa el link de un post de Instagram.*\n *◦ Ejemplo:* " + prefix + command + "\thttps://www.instagram.com/p/Ck9R1K8hzcY/?utm_source=ig_web_copy_link");
}
if (!(text.includes("instagram.com/p/") || text.includes("instagram.com/reel/") || text.includes("instagram.com/tv/") || text.includes("instagram.com/stories/") || text.includes("instagram.com/s/"))) {
return m.reply("¡URL errónea! Solo se pueden descargar videos, tv, carretes, historias o contenido de Instagram con formato 's'.");
}
axios.get('https://delirius-api-tau.vercel.app/api/instagram', { params: { url: text } }).then(async (response) => {
const results = response.data.data;
for (let i = 0; i < results.length; i++) {
const item = results[i];
if (item.type === 'image') {
conn.sendMessage(m.chat, { image: { url: item.url } }, { quoted: m });
} else if (item.type === 'video') {
conn.sendMessage(m.chat, { video: { url: item.url } }, { quoted: m });
}
}
});
} catch (e) {
m.reply(new Error(e).message);
}
}
break;
case 'corean': {
conn.sendMessage(m.chat, {image: {url: 'https://delirios-api-delta.vercel.app/nsfw/corean'} }, {quoted: m});
}
break;
case 'boobs': {
conn.sendMessage(m.chat, {image: {url: 'https://delirios-api-delta.vercel.app/nsfw/boobs'} }, {quoted: m});
}
break;
case 'get': case 'fetch': {
try {
if (!text) return m.reply('*🚩 Ingresa un enlace.*')
if (!/^https?:\/\//.test(text)) {
return m.reply('*🚩 Ingresa un enlace https://*');
}
const res = await fetch(text);
if (res.headers.get('content-length') > 100 * 1024 * 1024 * 1024) {
throw `Content-Length: ${res.headers.get('content-length')}`;
}
if (!/text|json/.test(res.headers.get('content-type'))) {
return;
}
let txt = await res.text();
try {
txt = format(JSON.parse(txt));
} catch (e) {
txt = txt + '';
} finally {
m.reply(txt.slice(0, 65536) + '');
}
} catch (error) {
m.reply('*🚩 :* ' + new Error(error).message);
console.log(new Error(error).message);
}
}
break;
case 'test': {
const test = generateWAMessageFromContent(from, { viewOnceMessage: {
message: { "messageContextInfo": {
"deviceListMetadata": {},
"deviceListMetadataVersion": 2 },
interactiveMessage: proto.Message.InteractiveMessage.create({ body:
proto.Message.InteractiveMessage.Body.create({ text: 'test' }),
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": "single_select",
"buttonParamsJson": `{"title":"Click",
"sections":[{"title":"",
"highlight_label": "",
"rows":[ {"header":"",
"title":"Velocidad", "description":"", "id":".ping"},
{"header":"", "title":"Estado", "description":"", "id":".estado"},
{"header":"", "title":"Menu", "description":"", "id":".menu"
}]}]}
`}]}),
contextInfo: {
mentionedJid: [m.sender],
forwardingScore: 1, isForwarded: true
}})}}}, {})
conn.relayMessage(test.key.remoteJid, test.message, { messageId: test.key.id }, {quoted: m})
}
break
case 'yts':
await yt(conn, m, text, from, command, fkontak, prefix)
break
case 'bratzmon': {
const { images } = require('https://raw.githubusercontent.com/DIEGO-OFC/ShadowBot-MD/main/src/nsfw/onlyf/bratzmon.js');
const randomImage = images[Math.floor(Math.random() * images.length)];
const msg = '💜 *Bratzmon* 💜';
await conn.sendButton(m.chat, msg, null, randomImage, [
['Siguiente 🖼️', `.bratzmon`]
], m);
}
break
case 'nowa':
let regex = /x/g
if (!text) m.reply('⚠️ Falto el número.')
if (!text.match(regex)) m.reply(`*Ejemplo de uso: ${prefix + command} 521999340434x*`)
let random = text.match(regex).length, total = Math.pow(10, random), array = []
for (let i = 0; i < total; i++) {
let list = [...i.toString().padStart(random, '0')]
let result = text.replace(regex, () => list.shift()) + '@s.whatsapp.net'
if (await conn.onWhatsApp(result).then(v => (v[0] || {}).exists)) {
let info = await conn.fetchStatus(result).catch(_ => {})
array.push({ exists: true, jid: result, ...info })
} else {
array.push({ exists: false, jid: result })
}}
let txt = 'Registrados\n\n' + array.filter(v => v.exists).map(v => `• Nro: wa.me/${v.jid.split('@')[0]}\n*• Bio:* ${v.status || 'Sin descripcion'}\n*• Fecha:* ${formatDate(v.setAt)}`).join('\n\n') + '\n\n*No registrados*\n\n' + array.filter(v => !v.exists).map(v => v.jid.split('@')[0]).join('\n')
m.reply(txt)
function formatDate(n, locale = 'id') {
let d = new Date(n)
return d.toLocaleDateString(locale, { timeZone: 'Asia/Jakarta' })}
break
case 'serbot': case 'jadibot':
if (m.isGroup) return m.reply(info.private)
await jadibot(conn, m, command)
break
case 'deljadibot': killJadibot(conn, m, command)
break
case 'sercode': jadibot2(conn, m, command, text)
break
case 'bots': case 'listbots':
try {
let user = [... new Set([...global.listJadibot.filter(conn => conn.user).map(conn => conn.user)])]
te = "*Lista de subbots*\n\n"
for (let i of user){
y = await conn.decodeJid(i.id)
te += " ❑ Usuario : @" + y.split("@")[0] + "\n"
te += " ❑ Nombre : " + i.name + "\n\n"
}
conn.sendMessage(from ,{text: te, mentions: [y], },{quoted: m})
} catch (err) {
reply(`*[❌] No hay subbots activos en este momento intente mas tarde*`)}
break
case 'toqr': {
toqr(conn, m, text, sender)}
break
case 'prueba8': case 'hentai': case 'nsfwloli': case 'lewd': case 'feed': case 'gasm': case 'anal': case 'holo': case 'tits': case 'kuni': case 'kiss': case 'erok': case 'smug': case 'solog': case 'feetg': case 'lewdk': case 'waifu': case 'pussy': case 'femdom': case 'cuddle': case 'eroyuri': case 'cum_jpg': case 'blowjob': case 'holoero': case 'erokemo': case 'fox_girl': case 'futanari': case 'wallpaper': case 'hentai2': case 'porno': case 'pack': case 'pack2': case 'pack3': case 'videoxxx': case 'vídeoxxx': case 'videoxxxlesbi': case 'videolesbixxx': case 'pornolesbivid': case 'pornolesbianavid': case 'pornolesbiv': case 'pornolesbianav': case 'yuri': case 'randomxxx': case 'pene': case 'panties': case 'imagenlesbians': case 'trapito': case 'furro': case 'ecchi': case 'booty': case 'pornoorgy': case 'pussy': case 'pornoglass': case 'pornofemdom': case 'pornoero': case 'pornocum': case 'pornoass': case 'pornoschool': case 'pornouniform': case 'pornololi': case 'pornofeet': case 'pornosuccubus': case 'pornomuslos': case 'pornonetorare': case 'tetas': case 'pechos': nsfw(m, sender, command, pickRandom, conn, sendImageAsUrl)
break
case 'ofuscar':
if (!text) return m.reply("*Ingresa el codigo que vas a ofuscar.*");
function obfuscateCode(code) {
return JavaScriptObfuscator.obfuscate(code, {
compact: false,
controlFlowFlattening: true,
deadCodeInjection: true,
simplify: true,
numbersToExpressions: true,
}).getObfuscatedCode();
}
let obfuscatedCode = await obfuscateCode(text);
conn.sendMessage(m.chat, {text: obfuscatedCode}, {quoted: m});
break
case 'acortar':
await acortar(conn, m, text, command)
break
case 'mangainfo': {
kataAnime(conn, m, text, command)}
break
case 'animeplanet': {
planetnime(conn, m, text, args, command) }
break
case 'google': {
await google(conn, m, text, command)}
break
case 'imagen': {
await imagen(conn, m, text, command)}
break
case 'attp':
if (global.db.data.users[m.sender].registered < true) return reply(info.registra)
if (!text) return reply('ingresa algo para convertirlo a sticker :v')
link = `https://api.lolhuman.xyz/api/attp?apikey=${lolkeysapi}&text=${text}`
conn.sendMessage(m.chat, { sticker: { url: link } }, { quoted: fkontak})
break
case 'traducir': case 'translate': {
await tran(conn, m, args, quoted, prefix, command)}
break
case 'hd': {
let q = m.quoted ? m.quoted : m;
let mime = (q.msg || q).mimetype || q.mediaType || "";
if (!mime)
return reply(`*[❗] 𝙴𝙽𝚅𝙸𝙴 𝚄𝙽𝙰 𝙸𝙼𝙰𝙶𝙴𝙽 𝙾 𝚁𝙴𝚂𝙿𝙾𝙽𝙳𝙰 𝙰 𝚄𝙽𝙰 𝙸𝙼𝙰𝙶𝙴𝙽 𝙲𝙾𝙽 𝙴𝙻 𝙲𝙾𝙼𝙰𝙽𝙳𝙾 #hd
`);
if (!/image\/(jpe?g|png)/.test(mime))
return reply(`*[❗] 𝙴𝙻 𝙵𝙾𝚁𝙼𝙰𝚃𝙾 𝙳𝙴𝙻 𝙰𝚁𝙲𝙷𝙸𝚅𝙾 (${mime}) 𝙽𝙾 𝙴𝚂 𝙲𝙾𝙼𝙿𝙰𝚁𝚃𝙸𝙱𝙻𝙴, 𝙴𝙽𝚅𝙸𝙰 𝙾 𝚁𝙴𝚂𝙿𝙾𝙽𝙳𝙴 𝙰 𝚄𝙽𝙰 𝙵𝙾𝚃𝙾*`);
m.reply(
"*⚔️ Espera mientras envio tu imagen HD*",
);
let img = await q.download?.();
let pr = await remini(img, "enhance");
conn.sendMessage(m.chat, { image: pr }, { quoted: m });
try {
} catch {
m.reply("*[❗] 𝙴𝚁𝚁𝙾𝚁, 𝙿𝙾𝚁 𝙵𝙰𝚅𝙾𝚁 𝚅𝚄𝙴𝙻𝚅𝙴 𝙰 𝙸𝙽𝚃𝙴𝙽𝚃𝙰𝚁𝙻𝙾*");
}
};
break;
//info
case 'estado':
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
await state(conn, m, speed, sender, fkontak)
break
case 'quitardolares': {
if (!isCreator) return conn.sendMessage(from, { text: info.owner }, { quoted: msg });
quitardolares(conn, m, sender, text, args, command)}
break
case 'menu': case 'help': {
conn.sendButton(m.chat, `╦══════════════════ ⪨
┃│✾ ⋟ *${ucapan()}*
┃│✾ ⋟ *tenemos varios tipos de menus*
┃│✾ ⋟ 1
┃│✾ ⋟ *#menucompleto*
┃│✾ ⋟ 2
┃│✾ ⋟ *#descargasmenu*
┃│✾ ⋟ *ejemplo:*
┃│✾ ⋟ *#menucompleto*
┃╰══ ⪨`, 'xdd', null, [['🌐 menucompleto', `.allmenu`], ['🧳 descargasmenu', `.descargasmenu`], ['👾 estado', `.estado`]], null, [['🎭 Grupo de WhatsApp', `https://chat.whatsapp.com/JuuuUaIQnnE3t4SWQenShg`]], m)
}
break
case 'menucompleto': case 'allmenu':
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
m.reply(`[ 𝐂𝐀𝐑𝐆𝐀𝐍𝐃𝐎 𝐌𝐄𝐍𝐔... ]`);
conn.sendMessage(m.chat, {image: imagen3, caption: menu(conn, prefix, pushname, sender, m), mentions:[sender]}, { quoted: fkontak })
break
case 'descargasmenu': {
await conn.sendMessage(m.chat, { image: { url: "https://telegra.ph/file/dde9bd1f999297449d139.jpg", }, caption: menu2(conn, prefix, pushname, sender, m),
contextInfo: {
mentionedJid: [m.sender],
externalAdReply: {
title: `MENU - DESCARGAS`,
sourceUrl: "http://paypal.me/DorratBotOficial",
mediaType: 1,
showAdAttribution: true,
thumbnailUrl: "https://telegra.ph/file/dde9bd1f999297449d139.jpg",
},
},
},
{ quoted: m, })}
break
case 'owner': case 'creador':
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
let vcard = `BEGIN:VCARD\nVERSION:3.0\nN:;OWNER 👑;;;\nFN:OWNER\nORG:OWNER 👑\nTITLE:\nitem1.TEL;waid=584125778026:+58 412 5778026\nitem1.X-ABLabel:OWNER 👑\nX-WA-BIZ-DESCRIPTION:ᴇsᴄʀɪʙɪ sᴏʟᴏ ᴘᴏʀ ᴄᴏsᴀs ᴅᴇʟ ʙᴏᴛ.\nX-WA-BIZ-NAME:Owner 👑\nEND:VCARD`
await conn.sendMessage(from, { contacts: { displayName: 'shadowʙᴏᴛ-ᴍᴅ 👑', contacts: [{ vcard }] }}, {quoted: m})
break
case 'grupos': case 'grupoficiales':
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
let img1 = fs.readFileSync('./media/grupos-oficiales.jpg')
await conn.sendMessage(m.chat, {image: img1, caption: `*𝙷𝙾𝙻𝙰 𝚄𝚂𝚄𝙰𝚁𝙸𝙾 👋🏻, 𝚃𝙴 𝙸𝙽𝚅𝙸𝚃𝙾 𝙰 𝚄𝙽𝙸𝚁𝚃𝙴 𝙰 𝙻𝙾𝚂 𝙶𝚁𝚄𝙿𝙾𝚂 𝙾𝙵𝙸𝙲𝙸𝙰𝙻𝙴𝚂 𝙳𝙴 †shadow-bot⃤ 𝙿𝙰𝚁𝙰 𝙲𝙾𝙽𝚅𝙸𝚅𝙸𝚁 𝙲𝙾𝙽 𝙻𝙰 𝙲𝙾𝙼𝚄𝙽𝙸𝙳𝙰𝙳 :D*
╭━━❍𝐓𝐇𝐄-SHADOW-𝐁𝐎𝐓-𝐌𝐃❍━━╮
┃ ╭━━━━━━━━━━━━━━━━╮
┃ ┃ ╭┈────────────╮
┃ ┃ │❍ 𝐆𝐑𝐔𝐏𝐎𝐒-𝐎𝐅𝐈𝐂𝐈𝐀𝐋𝐄𝐒 ❍
┃ ┃ ╰┈────────────╯
┃ ╰━━━━━━━━━━━━━━━━╯
╰━━━𝐆𝐑𝐔𝐏𝐎𝐒-𝐎𝐅𝐈𝐂𝐈𝐀𝐋𝐄𝐒╾━━━╯
╭┈───────────────╮
│ ▻ 𝙶𝚁𝚄𝙿𝙾 𝙳𝙴 𝙰𝙲𝚃𝚄𝙰𝙻𝙸𝚉𝙰𝙲𝙸𝙾𝙽𝙴𝚂 ◅
╰┈───────────────╯
╭━━━━━━━━━━━━━━━━━━━
┃⇛ https://chat.whatsapp.com/JuuuUaIQnnE3t4SWQenShg ⇚
╰━━━━━━━━━━━━━━━━━━━╯
╭━━━━━━━━━━━━━━━━━━━╾•
┃1: https://chat.whatsapp.com/BmsElfLOkC6DYTo4rqaQcf ⇚
╰━━━━━━━━━━━━━━━━━━━━━╯
╭━━━━━━━━━━━━━━━━━━━╾•
┃ ➢ 𝐺𝑅𝑈𝑃𝑂 𝐷𝐸 𝑀𝐼𝑁𝐸𝐶𝑅𝐴𝐹𝑇
╰━━━━━━━━━━━━━━━━━━━━╯
╭━━━━━━━━━━━━━━━━━━━╾
┃ https://chat.whatsapp.com/HNayAS8WrE1EtThLpkllRS
╰━━━━━━━━━━━━━━━━━━━━╯`}, { quoted: m })
break
case 'instalarbot': case 'crearbot': {
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
let instalar = `
*—◉ 𝚃𝚄𝚃𝙾𝚁𝙸𝙰𝙻 𝚃𝙴𝚁𝙼𝚄𝚇*:
https://youtu.be/DKo7PO2ta4o
*—◉ 𝙲𝙾𝙼𝙰𝙽𝙳𝙾𝚂 𝚃𝙴𝚁𝙼𝚄𝚇*
termux-setup-storage
> apt update
> pkg upgrade
> pkg install git -y
> pkg install nodejs -y
> pkg install ffmpeg -y
> pkg install imagemagick -y
> pkg install yarn
> git clone https://github.com/DIEGO-OFC/ShadowBot-MD
> cd Shadow-Bot-MD
> yarn install
> npm install
> npm install
> npm start
*—◉ 𝚃𝚄𝚃𝙾𝚁𝙸𝙰𝙻 𝙸𝙽𝙵𝙸𝙽𝙸𝚃𝚈-𝚆𝙰 𝙷𝙾𝚂𝚃𝙸𝙽𝙶 𝟸𝟺/𝟽*:
https://youtu.be/o2Ki6tjKF1U?si=bBIUUio7hruMmVPo
*—◉ 𝙿𝙰𝙶𝙸𝙽𝙰 𝙾𝙵𝙸𝙲𝙸𝙰𝙻:*
https://www.infinity-wa.xyz/
*—◉ 𝙳𝙰𝚂𝙷𝙱𝙾𝙰𝚁𝙳:*
https://dashboard.infinitywa.xyz
*—◉ 𝙿𝙰𝙽𝙴𝙻:*
https://store.panel-infinitywa.store
*—◉ 𝙳𝚄𝙳𝙰𝚂 𝚄𝙽𝙸𝙲𝙰𝙼𝙴𝙽𝚃𝙴 𝚂𝙾𝙱𝚁𝙴 𝙴𝙻 𝙷𝙾𝚂𝚃:*
https://discord.com/invite/JNJYqP52
*—◉ 𝙶𝚁𝚄𝙿𝙾 𝙳𝙴 𝚆𝙷𝙰𝚃𝚂𝙰𝙿𝙿:*
https://chat.whatsapp.com/GQ82mPnSYnm0XL2hLPk7FV
*—◉ 𝙲𝙰𝙽𝙰𝙻 𝙳𝙴 𝚆𝙷𝙰𝚃𝚂𝙰𝙿𝙿:*
https://whatsapp.com/channel/0029Va4QjH7DeON0ePwzjS1A
`.trim();
await conn.sendMessage(m.chat, { image: { url: "https://telegra.ph/file/dde9bd1f999297449d139.jpg", }, caption: instalar, contextInfo: {externalAdReply: {
title: "𝙸𝙽𝙵𝙾𝚁𝙼𝙰𝙲𝙸𝙾𝙽 - 𝙸𝙽𝚂𝚃𝙰𝙻𝙰𝚁𝙱𝙾𝚃",
body: "†SHADOW᪣𝕭⃯𝚹⃯𝐓⃤†",
sourceUrl: "https://github.com/DIEGO-OFC/Shadow-Bot-MD",
mediaType: 1,
showAdAttribution: true,
thumbnailUrl: "https://telegra.ph/file/dde9bd1f999297449d139.jpg",
},
},
}, { quoted: m, })}
break
case '584125778026': {
if (!args.join(" ")) return reply(`┗❴ ⚠ 𝐀𝐃𝐕𝐄𝐑𝐓𝐄𝐍𝐂𝐈𝐀 ⚠ ❵┛\n
ᴇsᴛᴀ ᴘʀᴏʜɪʙɪᴅᴏ ᴇᴛɪᴏ̨ᴜᴇᴛᴀʀ ᴀʟ ᴄʀᴇᴀᴅᴏʀ sɪ ᴛɪᴇɴᴇs ᴜɴᴀ ᴅᴜʀᴀ ʀᴇғᴇʀᴇɴᴛᴇ ᴀʟ ʙᴏᴛ ᴇsᴄʀɪʙɪʀʟᴇ ᴀ sᴜs ᴘʀɪᴠ.`)
for (let i of owner) {
}}
break
case 'grupo':
if (global.db.data.users[m.sender].registered < true) return reply(info.unreg)
if (!m.isGroup) return reply(info.group);
if (!isBotAdmins) return reply(info.botAdmin)
if (!isGroupAdmins) return reply(info.admin)
if (!text) return conn.sendButton(m.chat, `*Accion mal usaba*\n\n*Use de esta forma:*\n*${prefix + command} abrir*\n*${prefix + command} cerrar*`, wm, null, [['ABRIR', `${prefix + command} cerrar`], ['CERRAR', `${prefix + command} off`]], null, null, m)
if (args[0] === 'abrir') {
if (args[0] === 'open') {
m.reply(`*GRUPO ABIERTO CON EXITO✅*`)
await conn.groupSettingUpdate(from, 'not_announcement')
}} else if (args[0] === 'cerrar') {
if (args[0] === 'close') {
m.reply(`*GRUPO CERRADO CON EXITO✅*`)
await conn.groupSettingUpdate(from, 'announcement')
}}
break
case 'delete': case 'del': {
if (!m.quoted) throw false
if (!isBotAdmins) return reply(info.botAdmin)
if (!isGroupAdmins) return reply(info.admin)
let { chat, fromMe, id} = m.quoted
let delet = m.message.extendedTextMessage.contextInfo.participant
let bang = m.message.extendedTextMessage.contextInfo.stanzaId
return conn.sendMessage(m.chat, { delete: { remoteJid: m.chat, fromMe: false, id: bang, participant: delet }})}
break
case 'reset': {
if (!isCreator) return conn.sendMessage(from, { text: info.owner }, { quoted: msg });
tranferSdw(conn, m, sender, text, command)}
break
case 'public': case 'publico': {
if (!isCreator) return reply(info.owner)
conn.public = true
reply('✅ Cambio con exito a uso público')}
break
case 'self': case 'privado': {
if (!isCreator) return reply(info.owner)
conn.public = false
reply('✅ Cambio con exito a uso privado')}
break
case 'autoadmin': case 'tenerpoder': {
if (!m.isGroup) return reply(info.group)
if (!isCreator) return reply(info.owner)
m.reply('Ya eres admin mi jefe 😎')
await conn.groupParticipantsUpdate(m.chat, [m.sender], "promote")}
break
case 'math': case 'matematicas': {
if (kuismath.hasOwnProperty(m.sender.split('@')[0])) return m.reply('*[❗𝐈𝐍𝐅𝐎❗] 𝚃𝙾𝙳𝙰𝚅𝙸𝙰 𝙷𝙰𝚈 𝙿𝚁𝙴𝙶𝚄𝙽𝚃𝙰𝚂 𝚂𝙸𝙽 𝚁𝙴𝚂𝙿𝙾𝙽𝙳𝙴𝚁 𝙴𝙽 𝙴𝚂𝚃𝙴 𝙲𝙷𝙰𝚃!*')
let { genMath, modes } = require('./libs/math')
let mat = `*[❗𝐈𝐍𝐅𝐎❗] 𝙸𝙽𝙶𝚁𝙴𝚂𝙴 𝙻𝙰 𝙳𝙸𝙵𝙸𝙲𝚄𝙻𝚃𝙰𝙳𝙾 𝙲𝙾𝙽 𝙻𝙰 𝚀𝚄𝙴 𝙳𝙴𝚂𝙴𝙰 𝙹𝚄𝙶𝙰𝚁*
*𝙳𝙸𝙵𝙸𝙲𝚄𝙻𝚃𝙰𝙳𝙴𝚂 𝙳𝙸𝚂𝙿𝙾𝙽𝙸𝙱𝙻𝙴𝚂: ${Object.keys(modes).join(' | ')}*
*𝙴𝙹𝙴𝙼𝙿𝙻𝙾 𝙳𝙴 𝚄𝚂𝙾: ${prefix}mates medium*
`.trim();
if (!text) return conn.sendButton(m.chat, mat, `xd`, null, [['𝙼𝙰𝚃𝙴𝚂 𝙴𝙰𝚂𝚈', `.math easy`], ['𝙼𝙰𝚃𝙴𝚂 𝙼𝙴𝙳𝙸𝚄𝙼', `.math medium`], ['𝙼𝙰𝚃𝙴𝚂 𝙷𝙰𝚁𝙳', `math hard`]], null, null, m)
let result = await genMath(text.toLowerCase())
conn.sendText(m.chat, `𝙲𝚄𝙰𝙽𝚃𝙾 𝙴𝚂 𝙴𝙻 𝚁𝙴𝚂𝚄𝙻𝚃𝙰𝙳𝙾 𝙳𝙴 *${result.soal.toLowerCase()}*?\n\n*⏳ 𝚃𝙸𝙴𝙼𝙿𝙾: ${(result.waktu / 1000).toFixed(2)} 𝚜𝚎𝚐𝚞𝚗𝚍𝚘𝚜*\n*𝚁𝙴𝚂𝙿𝙾𝙽𝙳𝙴 𝙰 𝙴𝚂𝚃𝙴 𝙼𝙴𝙽𝚂𝙰𝙹𝙴 𝙲𝙾𝙽 𝙻𝙰 𝚁𝙴𝚂𝙿𝚄𝙴𝚂𝚃𝙰*`, m).then(() => {
kuismath[m.sender.split('@')[0]] = result.jawaban
})
await sleep(result.waktu)
if (kuismath.hasOwnProperty(m.sender.split('@')[0])) {
m.reply(`*[❗𝐈𝐍𝐅𝐎❗] 𝚂𝙴 𝙰𝙷 𝙵𝙸𝙽𝙰𝙻𝙸𝚉𝙰𝙳𝙾 𝙴𝙻 𝚃𝙸𝙴𝙼𝙿𝙾 𝙿𝙰𝚁𝙰 𝚁𝙴𝚂𝙿𝙾𝙽𝙳𝙴𝚁*\n\n*𝙻𝙰 𝚁𝙴𝚂𝙿𝚄𝙴𝚂𝚃𝙰 𝙴𝚂:* ` + kuismath[m.sender.split('@')[0]])
delete kuismath[m.sender.split('@')[0]]
}}
break
case 'ttc': case 'ttt': case 'tictactoe': {
let TicTacToe = require("./libs/tictactoe")
this.game = this.game ? this.game : {}
if (Object.values(this.game).find(room13 => room13.id.startsWith('tictactoe') && [room13.game.playerX, room13.game.playerO].includes(m.sender))) return m.reply(`*[❗] 𝙰𝚄𝙽 𝙴𝚂𝚃𝙰𝚂 𝙴𝙽 𝚄𝙽 𝙹𝚄𝙴𝙶𝙾 𝙲𝙾𝙽 𝙰𝙻𝙶𝚄𝙸𝙴𝙽*`)
let room13 = Object.values(this.game).find(room13 => room13.state === 'WAITING' && (text ? room13.name === text : true))
if (room13) {
room13.o = m.chat
room13.game.playerO = m.sender
room13.state = 'PLAYING'
let arr = room13.game.render().map(v => {
return {X: '❎',
O: '❌',
1: '1️⃣',
2: '2️⃣',
3: '3️⃣',
4: '4️⃣',
5: '5️⃣',
6: '6️⃣',
7: '7️⃣',
8: '8️⃣',
9: '9️⃣', }[v]})
let str = `💖 𝙹𝚄𝙴𝙶𝙾 𝚃𝚁𝙴𝚂 𝙴𝙽 𝚁𝙰𝚈𝙰 | 𝙻𝙰 𝚅𝙸𝙴𝙹𝙰
🫂 *𝙹𝚄𝙶𝙰𝙳𝙾𝚁𝙴𝚂*:
*═════════*
🎮👾 ᴇsᴘᴇʀᴀɴᴅᴏ ᴀ @${room13.game.currentTurn.split('@')[0]} ᴄᴏᴍᴏ ᴘʀɪᴍᴇʀ ᴊᴜɢᴀᴅᴏʀ
*═════════*
${arr.slice(0, 3).join('')}
${arr.slice(3, 6).join('')}
${arr.slice(6).join('')}
*═════════*
▢ *𝐒𝐀𝐋𝐀 :* ${room13.id}
*═════════*
▢ *𝐑𝐄𝐆𝐋𝐀𝐒 :*
* ʜᴀᴢ 3 ғɪʟᴀs ᴅᴇ sɪᴍʙᴏʟᴏs ᴠᴇʀᴛɪᴄᴀʟᴇs, ʜᴏʀɪᴢᴏɴᴛᴀʟᴇs ᴏ ᴅɪᴀɢᴏɴᴀʟᴇs ᴘᴀʀᴀ ɢᴀɴᴀʀ
* ᴇsᴄʀɪʙᴇ *rendirse* para rendirte y admitir la derrota.`
if (room13.x !== room13.o) await conn.sendText(room13.x, str, m, { mentions: parseMention(str) } )
await conn.sendText(room13.o, str, m, { mentions: parseMention(str) } )
} else {
room13 = {id: 'tictactoe-' + (+new Date),
x: m.chat,
o: '',
game: new TicTacToe(m.sender, 'o'),
state: 'WAITING'
}
if (text) room13.name = text
m.reply('*⏳ ᴇsᴘᴇʀᴀɴᴅᴏ ᴀʟ sɪɢᴜɪᴇɴᴛᴇ ᴊᴜɢᴀᴅᴏ*' + (text ? ` *ᴇsᴄʀɪʙᴀ ᴇʟ sɪɢᴜɪᴇɴᴛᴇ ᴄᴏᴍᴀɴᴅᴏ: ${prefix + command} ${text}*\n\n🎁 ʀᴇᴄᴏᴍᴘᴇɴsᴀ : *4999 XP*` : ''))
this.game[room13.id] = room13
}}
break
case 'delttc': case 'delttt': {
this.game = this.game ? this.game : {}
try {
if (this.game) {
delete this.game
conn.sendText(m.chat, `*[ ✔ ] 𝚂𝙴 𝙴𝙻𝙸𝙼𝙸𝙽𝙾 𝙻𝙰 𝚂𝙰𝙻𝙰 𝙳𝙴 𝙹𝚄𝙴𝙶𝙾 𝙳𝙴 𝚃𝚁𝙴𝚂 𝙴𝙽 𝚁𝙰𝚈𝙰*`, m)
} else if (!this.game) {
conn.sendButton(m.chat, `*[❗] 𝙽𝙾 𝙴𝚂𝚃𝙰𝚂 𝙴𝙽 𝙽𝙸𝙽𝙶𝚄𝙽𝙰 𝙿𝙰𝚁𝚃𝙸𝙳𝙰 𝙳𝙴 𝚃𝚁𝙴𝚂 𝙴𝙽 𝚁𝙰𝚈𝙰*`, `xd`, null, [['𝙸𝙽𝙸𝙲𝙸𝙰𝚁 𝚂𝙰𝙻𝙰 𝙳𝙴 𝙹𝚄𝙴𝙶𝙾', '.ttt partida nueva']], null, null, m)
} else throw '?'
} catch (e) {
m.reply('Nose que paso? hubor error pon de nuevo el comando jjjj')
}}
break
case 'ppt': case 'suit': {
if (!text) return conn.sendButton(m.chat, `*𝐏𝐢𝐞𝐝𝐫𝐚 🗿, 𝐏𝐚𝐩𝐞𝐥 📄 𝐨 𝐓𝐢𝐣𝐞𝐫𝐚 ✂️*\n\n*—◉ 𝙿𝚎𝚍𝚎𝚜 𝚞𝚜𝚊𝚛 𝚕𝚘𝚜 𝚋𝚘𝚝𝚘𝚗𝚎𝚜 𝚙𝚊𝚛𝚊 𝚓𝚞𝚐𝚊𝚛 𝚘 𝚝𝚊𝚖𝚋𝚒𝚎𝚗 𝚙𝚞𝚎𝚍𝚎𝚜 𝚞𝚜𝚊𝚛 𝚎𝚜𝚝𝚘𝚜 𝚌𝚘𝚖𝚊𝚗𝚍𝚘𝚜:*\n*◉ ${prefix + command} piedra*\n*◉ ${prefix + command} papel*\n*◉ ${prefix + command} tijera*`, `xd`, null, [['Piedra 🗿', `${prefix + command} piedra`], ['Papel 📄', `${prefix + command} papel`], ['Tijera ✂️', `${prefix + command} tijera`]], null, null, m)
var astro = Math.random()
if (astro < 0.34) {
astro = 'piedra'
} else if (astro > 0.34 && astro < 0.67) {
astro = 'tijera'
} else {
astro = 'papel'
}
if (text == astro) {
global.db.data.users[m.sender].exp += 500
m.reply(`🔰 EMPATE! 🤝\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIOS +500 XP`)
} else if (text == 'papel') {
if (astro == 'piedra') {
global.db.data.users[m.sender].exp += 2000
m.reply(`🥳 HA GANADO! 🎉\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIO +2000 XP`)
} else {
global.db.data.users[m.sender].exp -= 300
m.reply(`HA PERDIDO ! 🤡\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n❌ PREMIO -300 XP`)
}
} else if (text == 'tijera') {
if (astro == 'papel') {
global.db.data.users[m.sender].exp += 1000
m.reply(`🥳 HA GANADO! 🎉\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIO +1000 XP`)
} else {
global.db.data.users[m.sender].exp -= 300
m.reply(`HA PERDIDO! 🤡\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n❌ PREMIO -300 XP`)
}
} else if (text == 'tijera') {
if (astro == 'papel') {
global.db.data.users[m.sender].exp += 1000
m.reply(`🥳 HA GANADO! 🎉\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIO +1000 XP`)
} else {
global.db.data.users[m.sender].exp -= 300
m.reply(`HA PERDIDO! 🤡\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n❌ PREMIO -300 XP`)
}
} else if (text == 'papel') {
if (astro == 'piedra') {
global.db.data.users[m.sender].exp += 1000
m.reply(`🥳 HA GANADO! 🎉\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIO +1000 XP`)
} else {
global.db.data.users[m.sender].exp -= 300
m.reply(`HA PERDIDO! 🤡\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n❌ PREMIO -300 XP`)
}
} else if (text == 'piedra') {
if (astro == 'tijera') {
global.db.data.users[m.sender].exp += 1000
m.reply(`🥳 HA GANADO! 🎉\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n🎁 PREMIO +1000 XP`)
} else {
global.db.data.users[m.sender].exp -= 300
m.reply(`HA PERDIDO! 🤡\n\n👉🏻 TU: ${text}\n👉🏻 EL BOT: ${astro}\n❌ PREMIO -300 XP`)
}}}
break
case 'follar': case 'cojer': {
if (!text) return m.reply(`Nombra / etiquete algun usuarios con el @tag`)
let user = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted.sender
conn.sendMessage(m.chat, { text: `🥵 te acabas acabas de coger a ${text}!🥵
te acabas de coger a la puta de ${text} mientras gemia como una maldita puta
${text} ¡te han cogido! 😏`, mentions: [m.sender, text.replace('@', '') + '@s.whatsapp.net']}, { quoted: m, ephemeralExpiration: 24*60*100, disappearingMessagesInChat: 24*60*100})}
break
case 'formarpareja': case 'formarparejas': {
let toM = (a) => "@" + a.split("@")[0];
let ps = groupMetadata.participants.map((v) => v.id);
let a = ps[Math.floor(Math.random() * ps.length)]
let b;
do b = ps[Math.floor(Math.random() * ps.length)]
while (b === a);
conn.sendMessage(m.chat, { text: `*${toM(a)}, 𝙳𝙴𝙱𝙴𝚁𝙸𝙰𝚂 𝙲𝙰𝚂𝙰𝚁𝚃𝙴 💍 𝚈 𝙲𝙾𝙹𝙴𝚁 𝙲𝙾𝙽 ${toM(b)}, 𝙷𝙰𝙲𝙴𝙽 𝚄𝙽𝙰 𝙱𝚄𝙴𝙽𝙰 𝙿𝙰𝚁𝙴𝙹𝙰 💓*`, mentions: [a, b]}, { quoted: m, ephemeralExpiration: 24*60*100, disappearingMessagesInChat: 24*60*100})}
break
case 'pregunta': case 'preg': {
if (!text) return m.reply(`[❕𝐈𝐍𝐅𝐎❕] *Ejemplo :*\n\n *${prefix + command}* me baño?`)
m.react('🤔')
let pr = ['no', 'si', 'nose', 'puede ser', 'no creo', 'olvio', 'Que pregunta mas boluda', 'A', 'pendejo', 'pues nose']
let preg = pr[Math.floor(Math.random() * pr.length)]
m.reply(`╔═══════════════════
║≡ *❗ 𝐏𝐑𝐄𝐆𝐔𝐍𝐓𝐀𝐒 ❗*
║-----------------------