forked from GiLzBotz/Hiruko-Kagetane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiruko.js
2181 lines (2069 loc) · 657 KB
/
hiruko.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
/**
ꕥ Boleh Reupload, Asal Izin + Cantumin Channel Ori
ꕥ No Enc? Recode Sndiri
ꕥ Cek https://github.com/DikaArdnt/
ꕥ Thanks To :
ꕥ My God
ꕥ Dika Arndt (Author)
ꕥ Fatih A
ꕥ Nurutomo
ꕥ Mhankbarbar
ꕥ Ryuuka Team (Recode)
ꕥ Penyedia Module
ꕥ Penyedia Api
ꕥ User RYUMD
**/
require('./settings')
const { default: makeWAryuuet, BufferJSON, WA_DEFAULT_EPHEMERAL, generateWAMessageFromContent, downloadContentFromMessage, downloadHistory, proto, getMessage, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, areJidsSameUser, getContentType } = require('@adiwajshing/baileys')
const fs = require('fs')
const util = require('util')
const chalk = require('chalk')
const { exec, spawn, execSync } = require("child_process")
const axios = require('axios')
const { fromBuffer } = require('file-type')
const path = require('path')
const os = require('os')
const speed = require('performance-now')
const { performance } = require('perf_hooks')
const { pinterest, wallpaper, wikimedia, quotesAnime } = require('./lib/scraper')
const { bytesToSize, TelegraPh, UploadFileUgu, webp2mp4File, telesticker } = require('./lib/uploader')
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} = require('./lib/myfunc')
const fetch = require('node-fetch')
const yts = require('yt-search');
const ffmpeg = require('fluent-ffmpeg')
const moment = require('moment-timezone')
const time = moment().tz('Asia/Jakarta').format("HH:mm:ss")
const wib = moment.tz('Asia/Jakarta').format('HH:mm:ss')
const wita = moment.tz('Asia/Makassar').format("HH:mm:ss")
const wit = moment.tz('Asia/Jayapura').format("HH:mm:ss")
const hour_now = moment().format('HH:mm:ss')
const { EmojiAPI } = require("emoji-api");
const emoji = new EmojiAPI()
const { color, RyuuLog } = require('./lib/color')
const similarity = require('similarity')
const qrcode = require('qrcode')
//Module Apikey
const xfar = require('xfarr-api');
const hxz = require("hxz-api");
const ra = require("ra-api");
const kotz = require("kotz-api");
const bochil = require("@bochilteam/scraper")
a = '```'
modelmenu = 'image'
// DATABASE JSON
const database = require('./src/database.json')
// DATABASE JS
const { rules } = require('./ryudata/rules.js')
const { donasi } = require('./ryudata/donasi.js')
const { sewa } = require('./ryudata/sewa.js')
const { allmenu } = require(`./ryudata/allmenu.js`)
const { stele, sdatabase, srpg, spoto, sphoto, svoice, smenu, simple, list, sowner, sgrup, sdown, ssearch, sasupan, sfun, sanime, snsfw, smaker, sother, sgame, sinfo, snulis, stextpro, srandom, scecan } = require('./ryudata/simple.js')
const { wrongFormat, notNum, notLink, fiturOff, fiturError, kataKasar, addUser, kickUser, proMote, deMote, namaGrup, epOn, epOff } = require('./ryudata/confat.js')
// DATABASE GAME MENU
global.db = JSON.parse(fs.readFileSync('./src/database.json'))
if (global.db) global.db = {
sticker: {},
database: {},
game: {},
others: {},
users: {},
chats: {},
settings: {},
...(global.db || {})
}
let tebaklagu = db.game.tebaklagu = []
let _family100 = db.game.family100 = []
let kuismath = db.game.math = []
let tebakgambar = db.game.tebakgambar = []
let caklontong = db.game.lontong = []
let caklontong_desk = db.game.lontong_desk = []
let tebakkalimat = db.game.kalimat = []
let tebaklirik = db.game.lirik = []
let tebaktebakan = db.game.tebakan = []
let absen = db.others.absen = []
//Module Exports
module.exports = ryuu = async (ryuu, 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 pushname = m.pushName || "No Name"
const botNumber = ryuu.user.id ? ryuu.user.id.split(":")[0]+"@s.whatsapp.net" : ryuu.user.id
const isCreator = [ryuu.user.id, ...global.owner].map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender)
const itsMe = m.sender == ryuu.user.id ? true : false
const text = q = args.join(" ")
const quoted = m.quoted ? m.quoted : m
const mime = (quoted.msg || quoted).mimetype || ''
const isMedia = /image|video|sticker|audio/.test(mime)
const from = m.key.remoteJid
const { type, quotedMsg, mentioned, now, fromMe } = m
const more = String.fromCharCode(8206)
const readmore = more.repeat(4001)
// 🗿 Function Group
const isGroup = m.key.remoteJid.endsWith('@g.us')
const sender = m.isGroup ? (mek.key.participant ? mek.key.participant : mek.participant) : mek.key.remoteJid
const groupMetadata = m.isGroup ? await ryuu.groupMetadata(m.chat).catch(e => {}) : ''
const groupName = m.isGroup ? groupMetadata.subject : ''
const participants = m.isGroup ? await groupMetadata.participants : ''
const groupAdmins = m.isGroup ? await participants.filter(v => v.admin !== null).map(v => v.id) : ''
const groupOwner = m.isGroup ? groupMetadata.owner : ''
const isBotAdmins = m.isGroup ? groupAdmins.includes(botNumber) : false
const isGroupAdmins = m.isGroup ? groupOwner.includes(m.sender) || groupAdmins.includes(m.sender) : false
const mentionUser = [...new Set([...(m.mentionedJid || []), ...(m.quoted ? [m.quoted.sender] : [])])]
const isNumber = x => typeof x === 'number' && !isNaN(x)
const isImage = (type == 'imageMessage')
const isVideo = (type == 'videoMessage')
const isSticker = (type == 'stickerMessage')
const isQuotedMsg = (type == 'extendedTextMessage')
const isQuotedImage = isQuotedMsg ? content.includes('imageMessage') ? true : false : false
const isQuotedAudio = isQuotedMsg ? content.includes('audioMessage') ? true : false : false
const isQuotedDocument = isQuotedMsg ? content.includes('documentMessage') ? true : false : false
const isQuotedVideo = isQuotedMsg ? content.includes('videoMessage') ? true : false : false
const isQuotedSticker = isQuotedMsg ? content.includes('stickerMessage') ? true : false : false
//Background
let picaks = [bg1,bg2,bg3,bg4]
let picak = picaks[Math.floor(Math.random() * picaks.length)]
let tipsz = [tips1, tips2, tips3, tips4, tips5]
let tips = tipsz[Math.floor(Math.random() * tipsz.length)]
let quote = [quotes1, quotes2, quotes3]
let quotes = quote[Math.floor(Math.random() * quote.length)]
// 🗿 Function Waktu
const time2 = moment().tz('Asia/Jakarta').format('HH:mm:ss')
if(time2 < "23:59:00"){ var ucapanWaktu = 'Selamat Malam 🌌 Dan Selamat Beristirahat 🛏️' }
if(time2 < "19:00:00"){ var ucapanWaktu = 'Selamat Petang 🌆 Dan Selamat Bersantai 🛋️' }
if(time2 < "18:00:00"){ var ucapanWaktu = 'Selamat Sore 🌇 Dan Selamat Bersantai ☕' }
if(time2 < "15:00:00"){ var ucapanWaktu = 'Selamat Siang 🏞 Dan Selamat Beraktifitas 💼' }
if(time2 < "11:00:00"){ var ucapanWaktu = 'Selamat Pagi 🌅 Dan Selamat Beraktifitas 🤝' }
if(time2 < "05:00:00"){ var ucapanWaktu = 'Selamat Malam 🏙 Dan Selamat Beristirahat 😪' }
if(time2 < "23:59:00"){ var ucapanWaktu1 = 'Selamat Malam 🌌' }
if(time2 < "19:00:00"){ var ucapanWaktu1 = 'Selamat Petang 🌆' }
if(time2 < "18:00:00"){ var ucapanWaktu1 = 'Selamat Sore 🌇' }
if(time2 < "15:00:00"){ var ucapanWaktu1 = 'Selamat Siang 🏞' }
if(time2 < "11:00:00"){ var ucapanWaktu1 = 'Selamat Pagi 🌅' }
if(time2 < "05:00:00"){ var ucapanWaktu1 = 'Selamat Malam 🏙' }
//FAKE FAKE AN
const fkontak = { key: {participant: `[email protected]`, ...(from ? { remoteJid: `[email protected]` } : {}) }, message: { 'contactMessage': { 'displayName': `${pushname}`, 'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;${pushname},;;;\nFN:${pushname},\nitem1.TEL;waid=${sender.split('@')[0]}:${sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`, 'jpegThumbnail': global.thumb, thumbnail: global.thumb,sendEphemeral: true}}}
const fgif = {key: {participant: `[email protected]`, ...(from ? { remoteJid: "status@broadcast" } : {})},message: {"videoMessage": { "title":global.namaowner, "h": `Hmm`,'seconds': '359996400', 'gifPlayback': 'true', 'caption': global.namaowner, 'jpegThumbnail': global.thumb}}}
const ftroli ={key: {fromMe: false,"participant":"[email protected]", "remoteJid": "[email protected]"}, "message": {orderMessage: {itemCount: 2022,status: 200, thumbnail: global.thumb, surface: 200, message: global.namaowner, orderTitle: 'FATIHmek', sellerJid: '[email protected]'}}, contextInfo: {"forwardingScore":999,"isForwarded":true},sendEphemeral: true}
const replygrup = (teks) => {ryuu.sendMessage(m.chat, { text: teks, contextInfo:{"externalAdReply": {"title": `${ucapanWaktu1} ${pushname}`,"body": `Group Official`, "previewType": "PHOTO","thumbnailUrl": ``,"thumbnail": global.thumb,"sourceUrl": global.linkgroup}}}, { quoted: m})}
const replyvid = (teks) => {ryuu.sendMessage(m.chat, { text: teks, contextInfo:{"externalAdReply":{"title": `${ucapanWaktu1} ${pushname}`,"body": global.namaowner,"previewType": "PHOTO","thumbnail": thumb, "sourceUrl": global.webme}}}, {quoted: m})}
let replyacak = [replygrup, replyvid]
let reply = replyacak[Math.floor(Math.random() * replyacak.length)]
//Database
try {
let users = global.db.users[m.sender]
if (typeof users !== 'object') global.db.users[m.sender] = {}
if (users) {
if (!isNumber(users.afkTime)) users.afkTime = -1
if (!('banned' in users)) users.banned = false
if (!('afkReason' in users)) users.afkReason = ''
if (!isNumber(users.limit)) users.limit = global.limitCount
if (!isNumber(users.money)) users.money = 0
if (!isNumber(users.exp)) users.exp = 0
if (!isNumber(users.autolevelup)) users.autolevelup = true
if (!isNumber(users.level)) users.level = 0
if (!isNumber(users.role)) users.role = 'Beginner'
if (!isNumber(users.healt)) users.healt = 100
if (!isNumber(users.gold)) users.gold = 0
if (!isNumber(users.besi)) users.besi = 0
if (!isNumber(users.berlian)) users.berlian = 0
if (!isNumber(users.potion)) users.potion = 0
if (!isNumber(users.kayu)) users.kayu = 0
if (!isNumber(users.sampah)) users.sampah = 0
if (!isNumber(users.sword)) users.sword = 0
if (!isNumber(users.armor)) users.armor = 0
if (!isNumber(users.panah)) users.armor = 0
if (!isNumber(users.anakpanah)) users.armor = 0
if (!isNumber(users.kapak)) users.armor = 0
if (!isNumber(users.pancing)) users.armor = 0
if (!isNumber(users.umpan)) users.armor = 0
if (!isNumber(users.alat)) users.armor = 0
if (!isNumber(users.ikan)) users.ikan = 0
if (!isNumber(users.ayam)) users.ayam = 0
if (!isNumber(users.kambing)) users.kambing = 0
if (!isNumber(users.kelinci)) users.kelinci = 0
if (!isNumber(users.sapi)) users.sapi = 0
if (!isNumber(users.common)) users.common = 0
if (!isNumber(users.uncommon)) users.uncommon = 0
if (!isNumber(users.mythic)) users.mythic = 0
if (!isNumber(users.legendary)) users.legendary = 0
if (!isNumber(users.kucing)) users.kucing = 0
if (!isNumber(users.kucingexp)) users.kucingexp = 0
if (!isNumber(users.kuda)) users.kuda = 0
if (!isNumber(users.kudaexp)) users.kudaexp = 0
if (!isNumber(users.rubah)) users.rubah = 0
if (!isNumber(users.rubahexp)) users.rubahexp = 0
if (!isNumber(users.makananpet)) users.makananpet = 0
if (!('lastday' in users)) users.lastday = 0
if (!('lastmonthly' in users)) users.lastmonthly = 0
if (!('lastgajian' in users)) users.lastgajian = 0
if (!('lastslot' in users)) users.lastslot = 0
if (!('lastbansos' in users)) users.bansos = 0
if (!('lastadventure' in users)) users.bansos = 0
if (!('lastmancing' in users)) users.bansos = 0
if (!('lastnebang' in users)) users.bansos = 0
if (!('lastmining' in users)) users.bansos = 0
} else global.db.users[m.sender] = {
afkTime: -1,
banned: false,
afkReason: '',
limit: global.limitCount,
money: 0,
exp: 0,
autolevelup: true,
level: 0,
role: 'Beginner',
healt: 100,
gold: 0,
besi: 0,
berlian: 0,
potion: 0,
kayu: 0,
sampah: 0,
sword: 0,
armor: 0,
panah: 0,
anakpanah: 0,
kapak: 0,
pancing: 0,
umpan: 0,
alat: 0,
ikan: 0,
ayam: 0,
kambing: 0,
kelinci: 0,
sapi: 0,
common: 0,
uncommon: 0,
mythic: 0,
legendary: 0,
kucing: 0,
kucingexp: 0,
kuda: 0,
kudaexp: 0,
rubah: 0,
rubahexp: 0,
makananpet: 0,
lastday: 0,
lastmonthly: 0,
lastgajian: 0,
lastslot: 0,
lastbansos: 0,
lastadventure: 0,
lastmancing: 0,
lastnebang: 0,
lastmining: 0
}
//Anti Anti
let chats = global.db.chats[m.chat]
if (typeof chats !== 'object') global.db.chats[m.chat] = {}
if (chats) {
if (!('mute' in chats)) chats.mute = false
if (!('antilink' in chats)) chats.antilink = false
if (!('antiwame' in chats)) chats.antiwame = false
if (!('antivirtex' in chats)) chats.antivirtex = false
if (!('nsfw' in chats)) chats.nsfw = false
if (!('event' in chats)) chats.event = false
} else global.db.chats[m.chat] = {
mute: false,
antilink: false,
antiwame: false,
antivirtex: false,
nsfw: false,
event: false
}
let settings = global.db.settings[botNumber]
if (typeof settings !== 'object') global.db.settings[botNumber] = {}
if (settings) {
if (!('anticall' in settings)) settings.anticall = false
} else global.db.settings[botNumber] = {
anticall: false
}
} catch (err) {
console.error(err)
}
for (let jid of mentionUser) {
let user = global.db.users[jid]
if (!user) continue
let afkTime = user.afkTime
if (!afkTime || afkTime < 0) continue
let reason = user.afkReason || ''
reply(`${a}Jangan Tag Dia!\nKarena Dia Sedang AFK ${reason ? '\nAlasan : ' + reason : 'Alasan : Nothing'}\nSelama ${clockString(new Date - afkTime)}${a}`.trim())}
if (db.users[m.sender].afkTime > -1) {
let user = global.db.users[m.sender]
reply(`*Kamu berhenti AFK ${user.afkReason ? 'setelah ' + user.afkReason : ''}*\n*Selama ${clockString(new Date - user.afkTime)}*`.trim())
user.afkTime = -1
user.afkReason = ''
}
// Reset Limit Setiap Jam 9 Malam
let cron = require('node-cron')
cron.schedule('21 09 * * *', () => {
var user = Object.keys(global.db.users)
var limitUser = user.limit
for (let jid of user) global.db.users[jid].limit = limitUser
console.log('Reseted Limit')
}, {
scheduled: true,
timezone: "Asia/Jakarta"
})
// Respon Cmd with media
if (isMedia && m.msg.fileSha256 && (m.msg.fileSha256.toString('base64') in global.db.sticker)) {
let hash = global.db.sticker[m.msg.fileSha256.toString('base64')]
let { text, mentionedJid } = hash
let messages = await generateWAMessage(m.chat, { text: text, mentions: mentionedJid }, {
userJid: ryuu.user.id,
quoted: m.quoted && m.quoted.fakeObj
})
messages.key.fromMe = areJidsSameUser(m.sender, ryuu.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'
}
ryuu.ev.emit('messages.upsert', msg)
}
if (tebaklagu.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = tebaklagu[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'tebak lagu', buttonText: { displayText: 'TEBAK LAGU 🎵' }, type: 1 }], `*Tebak Lagu*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $1000`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 1000
delete tebaklagu[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawabanmu Salah 😢*')
}
if (kuismath.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = kuismath[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await m.reply(`*Kuis Matematika*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $1000`)
global.db.users[m.sender].money += 1000
delete kuismath[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawabanmu Salah 😢*')
}
if (tebakgambar.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = tebakgambar[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'tebak gambar', buttonText: { displayText: 'TEBAK GAMBAR 🖼️' }, type: 1 }], `*Tebak Gambar*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $500`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 500
delete tebakgambar[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawabanmu Salah 😢*')
}
if (caklontong.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = caklontong[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'caklontong', buttonText: { displayText: 'CAK LONTONG 👤' }, type: 1 }], `*Cak Lontong*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $1000`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 1000
delete caklontong[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawaban Salah 😢*')
}
if (tebakkalimat.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = tebakkalimat[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'tebak kalimat', buttonText: { displayText: 'TEBAK KALIMAT 👄' }, type: 1 }], `*Tebak Kalimat*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $500`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 500
delete tebakkalimat[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawaban Salah 😢*')
}
if (tebaklirik.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = tebaklirik[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'tebak gambar', buttonText: { displayText: 'TEBAK LIRIK 👨🎤' }, type: 1 }], `*Tebak Lirik*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $500`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 500
delete tebaklirik[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawabanmu Salah 😢*')
}
if (tebaktebakan.hasOwnProperty(m.sender.split('@')[0]) && isCmd) {
kuis = true
jawaban = tebaktebakan[m.sender.split('@')[0]]
if (budy.toLowerCase() == jawaban) {
await ryuu.sendButtonText(m.chat, [{ buttonId: 'tebak tebakan', buttonText: { displayText: 'TEBAK TEBAKAN 🕹️' }, type: 1 }], `*Tebak Tebakan*\n\n*Jawaban :* Benar ☑️\n*🎁 Hadiah :* $500`, 'Tekan Button Dibawah Ini Untuk Bermain Lagi', m)
global.db.users[m.sender].money += 500
delete tebaktebakan[m.sender.split('@')[0]]
} else reply('*Maaf Kak Jawabanmu Salah 😢*')
}
//TicTacToe
this.game = this.game ? this.game : {}
let room = Object.values(this.game).find(room => room.id && room.game && room.state && room.id.startsWith('tictactoe') && [room.game.playerX, room.game.playerO].includes(m.sender) && room.state == 'PLAYING')
if (room) {
let ok
let isWin = !1
let isTie = !1
let isSurrender = !1
// m.reply(`[DEBUG]\n${parseInt(m.text)}`)
if (!/^([1-9]|(me)?nyerah|surr?ender|off|skip)$/i.test(m.text)) return
isSurrender = !/^[1-9]$/.test(m.text)
if (m.sender !== room.game.currentTurn) { // nek wayahku
if (!isSurrender) return !0
}
if (!isSurrender && 1 > (ok = room.game.turn(m.sender === room.game.playerO, parseInt(m.text) - 1))) {
m.reply({
'-3': 'Game telah berakhir',
'-2': 'Invalid',
'-1': 'Posisi Invalid',
0: 'Posisi Invalid',
}[ok])
return !0
}
if (m.sender === room.game.winner) isWin = true
else if (room.game.board === 511) isTie = true
let arr = room.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) {
room.game._currentTurn = m.sender === room.game.playerX
isWin = true
}
let winner = isSurrender ? room.game.currentTurn : room.game.winner
let str = `Room ID: ${room.id}
${arr.slice(0, 3).join('')}
${arr.slice(3, 6).join('')}
${arr.slice(6).join('')}
${isWin ? `@${winner.split('@')[0]} Menang!` : isTie ? `Game berakhir` : `Giliran ${['❌', '⭕'][1 * room.game._currentTurn]} (@${room.game.currentTurn.split('@')[0]})`}
❌: @${room.game.playerX.split('@')[0]}
⭕: @${room.game.playerO.split('@')[0]}
Ketik *nyerah* untuk menyerah dan mengakui kekalahan`
if ((room.game._currentTurn ^ isSurrender ? room.x : room.o) !== m.chat)
room[room.game._currentTurn ^ isSurrender ? 'x' : 'o'] = m.chat
if (room.x !== room.o) await ryuu.sendText(room.x, str, m, { mentions: parseMention(str) } )
await ryuu.sendText(room.o, str, m, { mentions: parseMention(str) } )
if (isTie || isWin) {
delete this.game[room.id]
}
}
//Suit PvP
this.suit = this.suit ? this.suit : {}
let roof = Object.values(this.suit).find(roof => roof.id && roof.status && [roof.p, roof.p2].includes(m.sender))
if (roof) {
let win = ''
let tie = false
if (m.sender == roof.p2 && /^(acc(ept)?|terima|gas|oke?|tolak|gamau|nanti|ga(k.)?bisa|y)/i.test(m.text) && m.isGroup && roof.status == 'wait') {
if (/^(tolak|gamau|nanti|n|ga(k.)?bisa)/i.test(m.text)) {
ryuu.sendTextWithMentions(m.chat, `@${roof.p2.split`@`[0]} menolak suit, suit dibatalkan`, m)
delete this.suit[roof.id]
return !0
}
roof.status = 'play'
roof.asal = m.chat
clearTimeout(roof.waktu)
//delete roof[roof.id].waktu
ryuu.sendText(m.chat, `Suit telah dikirimkan ke chat
@${roof.p.split`@`[0]} dan
@${roof.p2.split`@`[0]}
Silahkan pilih suit di chat masing"
klik https://wa.me/${itsMe}`, m, { mentions: [roof.p, roof.p2] })
if (!roof.pilih) ryuu.sendText(roof.p, `Silahkan pilih \n\nBatu🗿\nKertas📄\nGunting✂️`, m)
if (!roof.pilih2) ryuu.sendText(roof.p2, `Silahkan pilih \n\nBatu🗿\nKertas📄\nGunting✂️`, m)
roof.waktu_milih = setTimeout(() => {
if (!roof.pilih && !roof.pilih2) ryuu.sendText(m.chat, `Kedua pemain tidak niat main,\nSuit dibatalkan`)
else if (!roof.pilih || !roof.pilih2) {
win = !roof.pilih ? roof.p2 : roof.p
ryuu.sendTextWithMentions(m.chat, `@${(roof.pilih ? roof.p2 : roof.p).split`@`[0]} tidak memilih suit, game berakhir`, m)
}
delete this.suit[roof.id]
return !0
}, roof.timeout)
}
var jwb = m.sender == roof.p
var jwb2 = m.sender == roof.p2
var g = /gunting/i
var b = /batu/i
var k = /kertas/i
var reg = /^(gunting|batu|kertas)/i
if (jwb && reg.test(m.text) && !roof.pilih && !m.isGroup) {
roof.pilih = reg.exec(m.text.toLowerCase())[0]
roof.text = m.text
reply(`Kamu telah memilih ${m.text} ${!roof.pilih2 ? `\n\nMenunggu lawan memilih` : ''}`)
if (!roof.pilih2) ryuu.sendText(roof.p2, '_Lawan sudah memilih_\nSekarang giliran kamu', 0)
}
if (jwb2 && reg.test(m.text) && !roof.pilih2 && !m.isGroup) {
roof.pilih2 = reg.exec(m.text.toLowerCase())[0]
roof.text2 = m.text
reply(`Kamu telah memilih ${m.text} ${!roof.pilih ? `\n\nMenunggu lawan memilih` : ''}`)
if (!roof.pilih) ryuu.sendText(roof.p, '_Lawan sudah memilih_\nSekarang giliran kamu', 0)
}
var stage = roof.pilih
var stage2 = roof.pilih2
if (roof.pilih && roof.pilih2) {
clearTimeout(roof.waktu_milih)
if (b.test(stage) && g.test(stage2)) win = roof.p
else if (b.test(stage) && k.test(stage2)) win = roof.p2
else if (g.test(stage) && k.test(stage2)) win = roof.p
else if (g.test(stage) && b.test(stage2)) win = roof.p2
else if (k.test(stage) && b.test(stage2)) win = roof.p
else if (k.test(stage) && g.test(stage2)) win = roof.p2
else if (stage == stage2) tie = true
ryuu.sendText(roof.asal, `_*Hasil Suit*_${tie ? '\nSERI' : ''}
@${roof.p.split`@`[0]} (${roof.text}) ${tie ? '' : roof.p == win ? ` Menang 🏆\n` : ` Kalah 😣\n`}
@${roof.p2.split`@`[0]} (${roof.text2}) ${tie ? '' : roof.p2 == win ? ` Menang 🏆\n` : ` Kalah 😣\n`}
`.trim(), m, { mentions: [roof.p, roof.p2] })
delete this.suit[roof.id]
}
}
// 🗿 Bot Status
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
})
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 }})
// Antilink
if (db.chats[m.chat].antilink) {
if (budy.match(`chat.whatsapp.com`)) {
reply(`Link Grup Lain Terdeteksi 🤬\nMaaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return reply(mess.botAdmin)
var gclink = (`https://chat.whatsapp.com/`+await ryuu.groupInviteCode(m.chat))
var isLinkThisGc = new RegExp(gclink, 'i')
var isgclink = isLinkThisGc.test(m.text)
if (isgclink) return reply(`Ehh Maaf Gak Jadi, Link Group Ini Ternyata 😆`)
if (isGroupAdmins) return reply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return reply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
ryuu.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
// Antiwame
if (db.chats[m.chat].antiwame) {
if (budy.match(`wa.me`)) {
reply(`Link Wame Lain Terdeteksi 🤬\nMaaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return reply(mess.botAdmin)
if (isGroupAdmins) return reply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return reply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
ryuu.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
if (db.chats[m.chat].antiwame) {
if (budy.match(`http://wa.me`)) {
reply(`Link Wame Lain Terdeteksi 🤬\nMaaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return reply(mess.botAdmin)
if (isGroupAdmins) return reply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return reply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
ryuu.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
if (db.chats[m.chat].antiwame) {
if (budy.match(`https://wa.me`)) {
reply(`Link Wame Lain Terdeteksi 🤬\nMaaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return reply(mess.botAdmin)
if (isGroupAdmins) return reply(`Ehh Maaf Ternyata Kamu Admin 😁`)
if (isCreator) return reply(`Ehh Maaf Kamu Ownerku Ternyata 😅`)
ryuu.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
//Antivirtex
if (db.chats[m.chat].antivirtex) {
if (budy.length > 3500) {
m.reply('Tandai telah dibaca\n'.repeat(300))
reply(`Virtex Terdeteksi 🤬\nMaaf Kamu Akan Di Kick !`)
if (!isBotAdmins) return reply(mess.botAdmin)
ryuu.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
// FUNCTION ANTI CALL
if (global.anticall) {
if (db.settings[botNumber].anticall) {
ryuu.ws.on('CB:call', async (json) => {
const callerId = json.content[0].attrs['call-creator']
if (json.content[0].tag == 'offer') {
var pa7rick = await ryuu.sendContact(callerId, global.owner)
ryuu.sendMessage(callerId, { text: `Sistem otomatis block!\nJangan menelpon bot!\nSilahkan Hubungi Owner Untuk Dibuka !`}, { quoted : pa7rick })
await sleep(8000)
await ryuu.updateBlockStatus(callerId, "block")
}
})
}
}
//🗿 Public & Self
if (!ryuu.public) {
if (!m.key.fromMe && !isCreator) return
}
// 🗿 Push Message To Console
if (m.message) {
console.log('\x1b[1;31m~\x1b[1;37m>', '[\x1b[1;32m R-TEAM94 \x1b[1;37m]', time, chalk.green(budy || m.mtype), 'Dari', chalk.blue(pushname), 'Di', chalk.yellow(groupName ? groupName : 'Private Chat' ), 'args :', chalk.white(args.length))
}
//Update Database
setInterval(() => {
fs.writeFileSync('./src/database.json', JSON.stringify(global.db, null, 2))
}, 60 * 1000)
const sendFileFromUrl = async (from, url, caption, mek, men) => {
var mime = '';
var res = await axios.head(url)
mime = res.headers['content-type']
if (mime.split("/")[1] === "gif") {
return ryuu.sendMessage(from, { video: await getBuffer(url), caption: caption, gifPlayback: true, mentions: men ? men : []}, {quoted: m})
}
var type = mime.split("/")[0]+"Message"
if(mime === "application/pdf"){
return ryuu.sendMessage(m.chat, { document: await getBuffer(url), mimetype: 'application/pdf', caption: caption, mentions: men ? men : []}, {quoted: mek })
}
if(mime.split("/")[0] === "image"){
return ryuu.sendMessage(m.chat, { image: await getBuffer(url), caption: caption, mentions: men ? men : []}, {quoted: m})
}
if(mime.split("/")[0] === "video"){
return ryuu.sendMessage(m.chat, { video: await getBuffer(url), caption: caption, mentions: men ? men : [], mimetype: 'video/mp4'}, {quoted: m})
}
if(mime.split("/")[0] === "audio"){
return ryuu.sendMessage(m.chat, { audio: await getBuffer(url), caption: caption, mentions: men ? men : [], mimetype: 'audio/mp4'}, {quoted: m })
}
}
const sendButton = (type, from, text, buttons, men, quoted, options) => {
if (type == 'image') {
ryuu.sendMessage(from, { caption: text, image: options ? options : global.thumb, buttons: buttons, headerType: 'IMAGE', mentions: men }, {quoted: m})
} else if (type == 'document') {
ryuu.sendMessage(from, { caption: text, document: options ? options : fs.readFileSync(doc), buttons: buttons, headerType: 'DOCUMENT', mentions: men }, {quoted: m})
} else if (type == 'video') {
if (options === undefined || options === null) return reply('illegal method, chat owner bot')
ryuu.sendMessage(from, { caption: text, video: options, buttons: buttons, headerType: 'VIDEO', mentions: men }, {quoted: m})
} else if (type == 'location') {
ryuu.sendMessage(from, { caption: text, location: { jpegthumb: options ? options : global.thumb }, buttons: buttons, headerType: 'LOCATION', mentions: men })
} else if (type == 'text') {
ryuu.sendMessage(from, { caption: text, buttons: buttons, headerType: 'TEXT', mentions: men }, {quoted: m})
} else {
reply('invalid type, please contact the owner bot')
}
}
//Get Pp User
try {
ppuse = await ryuu.profilePictureUrl(m.sender, 'image')
} catch {
ppuse = 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg'
}
var ppuser = await getBuffer(ppuse)
//Status
var elit = 'Petualang Biasa'
if (isCreator) {
elit = 'Dewa Game 👑'
}
//Random Nomer
function randomNomor(min, max = null) {
if (max !== null) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
} else {
return Math.floor(Math.random() * min) + 1
}
}
//Leveling
const growth = Math.pow(Math.PI / Math.E, 1.618) * Math.E * .75
function xpRange(level, multiplier = global.multiplier || 1) {
if (level < 0)
throw new TypeError('level cannot be negative value')
level = Math.floor(level)
let min = level === 0 ? 0 : Math.round(Math.pow(level, growth) * multiplier) + 1
let max = Math.round(Math.pow(++level, growth) * multiplier)
return {
min,
max,
xp: max - min
}
}
function findLevel(xp, multiplier = global.multiplier || 1) {
if (xp === Infinity)
return Infinity
if (isNaN(xp))
return NaN
if (xp <= 0)
return -1
let level = 0
do
level++
while (xpRange(level, multiplier).min <= xp)
return --level
}
function canLevelUp(level, xp, multiplier = global.multiplier || 1) {
if (level < 0)
return false
if (xp === Infinity)
return true
if (isNaN(xp))
return false
if (xp <= 0)
return false
return level < findLevel(xp, multiplier)
}
//Hewan
var ikan = ['🐳','🦈','🐬','🐋','🐟','🐠','🦐','🦑','🦀','🐡','🐙']
//Level User
var user = global.db.users[m.sender]
var role = (user.level <= 3) ? 'Warrior'
: ((user.level >= 7) && (user.level <= 14)) ? 'Elite'
: ((user.level >= 14) && (user.level <= 21)) ? 'Master'
: ((user.level >= 21) && (user.level <= 28)) ? 'Grandmaster'
: ((user.level >= 28) && (user.level <= 35)) ? 'Epic'
: ((user.level >= 35) && (user.level <= 42)) ? 'Legend'
: ((user.level >= 42) && (user.level <= 49)) ? 'Mythic'
: ((user.level >= 49) && (user.level <= 56)) ? 'Mythical Glory'
: ((user.level >= 56) && (user.level <= 63)) ? 'Majin'
: ((user.level >= 63) && (user.level <= 70)) ? 'Demon Lord Seed'
: ((user.level >= 70) && (user.level <= 77)) ? 'Demon Lord'
: ((user.level >= 77) && (user.level <= 84)) ? 'True Demon Lord'
: ((user.level >= 84) && (user.level <= 88)) ? 'Octagram'
: ((user.level >= 88) && (user.level <= 91)) ? 'Older Demon Lord'
: ((user.level >= 91) && (user.level <= 100)) ? 'Great demon lord'
: 'Star king dragon'
user.role = role
//Autoread Grup
if (global.autoReadGc) {
if (m.isGroup) { ryuu.sendReadReceipt(m.chat, m.sender, [m.key.id]) }}
//Auto Read All
if (global.autoReadAll) { if (m.chat) { ryuu.sendReadReceipt(m.chat, m.sender, [m.key.id]) }}
if (global.autoRecord) { if (m.chat) { ryuu.sendPresenceUpdate('recording', m.chat) }}
if (global.autoTyping) { if (m.chat) { ryuu.sendPresenceUpdate('composing', m.chat) }}
if (global.available) { if (m.chat) { ryuu.sendPresenceUpdate('available', m.chat) }
}
//Jangan Dihapus Ntar Error
(function(_0x4a3763,_0x20ab5e){function _0x3022f5(_0x3dc41c,_0x1404ec,_0x37819a,_0x2e8cb2,_0x484f60){return _0x1838(_0x2e8cb2- -0x144,_0x3dc41c);}function _0x32105c(_0x6a78cc,_0x5c9b49,_0x5023bd,_0x5e31fd,_0x4c75de){return _0x1838(_0x4c75de- -0x8f,_0x5023bd);}var _0x5aa2ef=_0x4a3763();function _0x1ce85e(_0x453760,_0x38e99c,_0x1347f8,_0x5021e6,_0x562681){return _0x1838(_0x1347f8-0x9d,_0x5021e6);}function _0x15168b(_0x17c76e,_0x5cc1bd,_0x7cf779,_0x359060,_0xc41224){return _0x1838(_0x17c76e- -0x209,_0x7cf779);}function _0x2e149c(_0xe3ce09,_0x373547,_0x1af45f,_0x55cd88,_0x5c8a9c){return _0x1838(_0x5c8a9c- -0x72,_0xe3ce09);}while(!![]){try{var _0x17504e=parseInt(_0x1ce85e(0x15e,0x176,0x179,0x18b,0x1a5))/(-0x1506+0xc*-0x15b+0x254b)*(parseInt(_0x1ce85e(0x159,0x19c,0x170,0x187,0x16b))/(-0x232e*-0x1+0x22b5+0x3*-0x174b))+-parseInt(_0x1ce85e(0x156,0x15b,0x144,0x128,0x174))/(0x3a*0x59+-0x1*0xc0c+-0x81b)*(parseInt(_0x1ce85e(0x195,0x143,0x174,0x147,0x14c))/(-0xeb8+0x201d+-0x1161*0x1))+-parseInt(_0x32105c(0x32,0x2d,0x65,0x3e,0x4e))/(0x5*0xfe+0x1259+-0xba5*0x2)+-parseInt(_0x32105c(-0x3a,-0x37,-0x8,-0x45,-0x24))/(0x43*0x29+-0x8*0x1b8+0x30b)+parseInt(_0x15168b(-0x182,-0x16f,-0x1b8,-0x191,-0x189))/(0xd14+0x1*-0x16f+-0x5cf*0x2)*(-parseInt(_0x32105c(0x1e,0x5e,0x2,0x1b,0x2f))/(0x67*-0x3a+-0x2638+0x3d96))+-parseInt(_0x15168b(-0x16b,-0x168,-0x14e,-0x19b,-0x139))/(-0x1*0x248e+-0xa*-0x184+-0xb1*-0x1f)+-parseInt(_0x1ce85e(0x125,0x131,0x14d,0x134,0x15d))/(-0x1ddb+0x793+0x1652)*(-parseInt(_0x2e149c(0x32,0x5d,0x58,0x1f,0x53))/(-0x1f8f+0x30c+0x1ae*0x11));if(_0x17504e===_0x20ab5e)break;else _0x5aa2ef['push'](_0x5aa2ef['shift']());}catch(_0x378501){_0x5aa2ef['push'](_0x5aa2ef['shift']());}}}(_0x48a6,-0x3f1a8*-0x1+0x1*-0x30a35+0x25*0x943));var _0xb62b0d=(function(){var _0x210d51={'ocfDg':function(_0x5488f5,_0x334f84){return _0x5488f5(_0x334f84);},'rflVN':_0x4af15f(-0x352,-0x37a,-0x32e,-0x386,-0x35e)+_0x4af15f(-0x30d,-0x2d4,-0x31c,-0x2f4,-0x317)+'+$','juJKk':function(_0x3d01b2,_0x344b3a){return _0x3d01b2===_0x344b3a;},'TVrGk':_0x4af15f(-0x329,-0x310,-0x31d,-0x33b,-0x2fb),'VTKIt':_0x4af15f(-0x35d,-0x37b,-0x375,-0x343,-0x34a),'fNCLH':function(_0x4d5830,_0x132c6b){return _0x4d5830!==_0x132c6b;},'sgCYj':_0x4dd2c1(-0x282,-0x2ab,-0x25c,-0x27d,-0x2a1),'PRpIt':function(_0xe400f8,_0x54aa58){return _0xe400f8!==_0x54aa58;},'RuAXM':_0x4af15f(-0x355,-0x353,-0x384,-0x330,-0x32d),'eoQcv':_0x3e7f1b(-0x2e3,-0x2be,-0x312,-0x2e9,-0x2bd)};function _0x4dd2c1(_0x4923b3,_0x259387,_0x113ad5,_0x16e58c,_0x4e8b23){return _0x1838(_0x4923b3- -0x353,_0x16e58c);}function _0x3204c3(_0x10f911,_0x3fe430,_0x4cf15a,_0x432aed,_0x54db7a){return _0x1838(_0x10f911- -0x253,_0x54db7a);}function _0x4af15f(_0x31c35a,_0x15a4bd,_0x2b91d6,_0x27fb92,_0x4b8da3){return _0x1838(_0x31c35a- -0x3e2,_0x15a4bd);}function _0x396603(_0x2b3964,_0x2c5bbe,_0x31df85,_0x55f0c7,_0x1131a8){return _0x1838(_0x31df85-0x2d0,_0x55f0c7);}function _0x3e7f1b(_0x48ff3c,_0x582fbc,_0x3f5dd1,_0x223af5,_0x5bee0b){return _0x1838(_0x48ff3c- -0x36d,_0x5bee0b);}var _0x5e032d=!![];return function(_0x1f7849,_0x451793){function _0x77c5f7(_0x27cfb7,_0x126f63,_0x573ecf,_0x342130,_0x4e5f21){return _0x3204c3(_0x573ecf-0x52a,_0x126f63-0x8,_0x573ecf-0xf3,_0x342130-0x10b,_0x342130);}function _0xfabf13(_0x741911,_0x26f267,_0x4b6448,_0x351ddd,_0x279a16){return _0x396603(_0x741911-0x128,_0x26f267-0x54,_0x351ddd- -0x4dc,_0x741911,_0x279a16-0x1a1);}function _0x41e650(_0x2b1c08,_0x559e88,_0x19374b,_0x142a2f,_0x149977){return _0x396603(_0x2b1c08-0x104,_0x559e88-0xf9,_0x2b1c08-0xff,_0x149977,_0x149977-0x1b1);}if(_0x210d51[_0x41e650(0x497,0x494,0x466,0x495,0x4b6)](_0x210d51[_0x41e650(0x49c,0x467,0x4d4,0x4ab,0x4a5)],_0x210d51[_0x77c5f7(0x33f,0x355,0x35a,0x367,0x352)])){var _0x411018=_0x5e032d?function(){function _0x141873(_0x2fb775,_0x460573,_0x104c67,_0x5da8b9,_0x548dc3){return _0x77c5f7(_0x2fb775-0x85,_0x460573-0x4c,_0x2fb775- -0x234,_0x548dc3,_0x548dc3-0x190);}function _0x1290bd(_0x2fcfe0,_0x323aef,_0xb21b78,_0x38d227,_0x53c6c1){return _0xfabf13(_0xb21b78,_0x323aef-0x9d,_0xb21b78-0xe3,_0x323aef-0x358,_0x53c6c1-0x6);}function _0x1ae266(_0x1ab603,_0x585846,_0x58b05e,_0x20b208,_0x509592){return _0x77c5f7(_0x1ab603-0x101,_0x585846-0x171,_0x509592- -0x4e8,_0x1ab603,_0x509592-0xc6);}function _0x110aad(_0x1b5e36,_0x42207b,_0x2837ac,_0x5b4a7d,_0x5b8f15){return _0x41e650(_0x42207b- -0x6f0,_0x42207b-0x69,_0x2837ac-0xb0,_0x5b4a7d-0x162,_0x2837ac);}var _0x1fb0af={'OPTok':function(_0x112023,_0x2f7ced){function _0x2dde86(_0x3dd059,_0x299c45,_0x2de01d,_0x171495,_0x3a80be){return _0x1838(_0x3dd059- -0x3d1,_0x3a80be);}return _0x210d51[_0x2dde86(-0x31a,-0x319,-0x30e,-0x34d,-0x31b)](_0x112023,_0x2f7ced);},'ucHuq':_0x210d51[_0x1290bd(0x247,0x21e,0x200,0x1f8,0x23c)]};function _0x54d8da(_0x28a8c3,_0x4d905b,_0x2bb276,_0xbef850,_0x36ffc1){return _0x41e650(_0xbef850- -0x620,_0x4d905b-0xd2,_0x2bb276-0xaa,_0xbef850-0xaa,_0x28a8c3);}if(_0x210d51[_0x141873(0x146,0x179,0x146,0x152,0x114)](_0x210d51[_0x1290bd(0x1f6,0x1e9,0x1b4,0x210,0x20a)],_0x210d51[_0x54d8da(-0x1f7,-0x1dd,-0x1ac,-0x1c5,-0x1f0)]))_0x1fb0af[_0x110aad(-0x23b,-0x248,-0x277,-0x20f,-0x25a)](_0x451782,(_0x141873(0x145,0x174,0x10e,0x136,0x110)+_0x110aad(-0x29a,-0x26d,-0x287,-0x276,-0x247)+_0x54d8da(-0x19e,-0x1be,-0x19a,-0x1b6,-0x1dc)+_0x54d8da(-0x1cc,-0x20a,-0x1b4,-0x1d7,-0x1fb)+_0x54d8da(-0x1f8,-0x1f4,-0x1a6,-0x1e0,-0x208)+_0x141873(0x172,0x13f,0x196,0x1a9,0x182)+_0x1ae266(-0x161,-0x173,-0x19d,-0x1a5,-0x17d)+_0x352e94+(_0x1ae266(-0x1d4,-0x1b2,-0x190,-0x16f,-0x19e)+'*')+_0x206672[_0x110aad(-0x270,-0x258,-0x21e,-0x261,-0x27e)]+(_0x1ae266(-0x150,-0x198,-0x173,-0x199,-0x177)+_0x54d8da(-0x1ae,-0x1fb,-0x208,-0x1df,-0x206)+_0x110aad(-0x27e,-0x2a6,-0x2ad,-0x2d6,-0x29c)+_0x110aad(-0x232,-0x25b,-0x239,-0x270,-0x27b)+_0x1ae266(-0x173,-0x1c8,-0x175,-0x18f,-0x1a1)+_0x54d8da(-0x158,-0x149,-0x19a,-0x176,-0x143)+_0x141873(0x166,0x15f,0x17c,0x143,0x195)+_0x141873(0x163,0x168,0x175,0x129,0x17a)))[_0x1ae266(-0x13b,-0x156,-0x178,-0x165,-0x14a)]());else{if(_0x451793){if(_0x210d51[_0x1290bd(0x1a2,0x1d2,0x1db,0x1eb,0x206)](_0x210d51[_0x1290bd(0x1e6,0x206,0x1f2,0x23e,0x219)],_0x210d51[_0x1290bd(0x221,0x206,0x216,0x20d,0x201)]))return _0x41836b[_0x141873(0x179,0x157,0x167,0x15b,0x177)+_0x110aad(-0x2a2,-0x28c,-0x27f,-0x26f,-0x2a9)]()[_0x1290bd(0x1f7,0x209,0x1ff,0x22a,0x210)+'h'](_0x1fb0af[_0x1290bd(0x1de,0x1fb,0x1d9,0x1cd,0x1c9)])[_0x1290bd(0x20d,0x222,0x213,0x206,0x1f7)+_0x54d8da(-0x1af,-0x1e3,-0x1b8,-0x1bc,-0x1d1)]()[_0x1290bd(0x19c,0x1cc,0x19b,0x1f2,0x19e)+_0x110aad(-0x29c,-0x28e,-0x2c3,-0x291,-0x275)+'r'](_0x2657a5)[_0x1290bd(0x1f4,0x209,0x20f,0x1dd,0x201)+'h'](_0x1fb0af[_0x141873(0x152,0x154,0x144,0x157,0x133)]);else{var _0x274159=_0x451793[_0x110aad(-0x29c,-0x288,-0x28d,-0x289,-0x265)](_0x1f7849,arguments);return _0x451793=null,_0x274159;}}}}:function(){};return _0x5e032d=![],_0x411018;}else{var _0x33463c=_0x40f33f?function(){function _0x5ad579(_0x40000d,_0xec5ec0,_0x5dba8c,_0x3cb817,_0x455483){return _0xfabf13(_0x40000d,_0xec5ec0-0x156,_0x5dba8c-0x6f,_0xec5ec0-0x1b5,_0x455483-0xde);}if(_0x478eb5){var _0x1ae8c7=_0x5e7c4b[_0x5ad579(0x3a,0x42,0x3e,0x78,0x24)](_0x4db8a0,arguments);return _0x22aab0=null,_0x1ae8c7;}}:function(){};return _0x187948=![],_0x33463c;}};}()),_0x1a9107=_0xb62b0d(this,function(){function _0x4f334f(_0x35201a,_0x3a7e8d,_0x35492d,_0x6e2f7f,_0x5de9ad){return _0x1838(_0x3a7e8d-0x46,_0x5de9ad);}function _0x44324e(_0x5bf94c,_0x5dfd58,_0x4f1ada,_0x5ca653,_0xaba938){return _0x1838(_0x4f1ada- -0xe,_0x5bf94c);}var _0x106746={};function _0x4ab140(_0x5e201f,_0xdc6af1,_0x5be2a3,_0x18eaa2,_0x16d7fe){return _0x1838(_0x5be2a3-0x33e,_0x18eaa2);}function _0x15d696(_0x20335b,_0x103060,_0x79387b,_0x2754e0,_0x2afcfb){return _0x1838(_0x20335b-0x84,_0x2afcfb);}_0x106746[_0x4f334f(0xda,0x10a,0xd4,0xe1,0xf9)]=_0x4f334f(0xa9,0xd6,0xc6,0xac,0xc9)+_0x599764(0x1bb,0x181,0x194,0x18e,0x150)+'+$';function _0x599764(_0x286b29,_0x147740,_0x1fc87c,_0x1a6c71,_0x2ce648){return _0x1838(_0x147740-0xac,_0x1fc87c);}var _0xdf06d7=_0x106746;return _0x1a9107[_0x599764(0x187,0x182,0x1a7,0x179,0x17e)+_0x4ab140(0x399,0x3c9,0x3d3,0x3c3,0x3ac)]()[_0x44324e(0xcb,0x7e,0xaf,0x8d,0x8c)+'h'](_0xdf06d7[_0x44324e(0xa3,0xbe,0xb6,0xb1,0x8f)])[_0x599764(0x1b4,0x182,0x161,0x16d,0x166)+_0x44324e(0x74,0xb0,0x87,0x69,0x69)]()[_0x4ab140(0x396,0x3d2,0x3be,0x3bc,0x38b)+_0x44324e(0x85,0x6d,0x85,0x72,0x8d)+'r'](_0x1a9107)[_0x4f334f(0x10a,0x103,0x13d,0xdf,0x127)+'h'](_0xdf06d7[_0x15d696(0x148,0x142,0x159,0x17f,0x148)]);});_0x1a9107(),autobio=!![];if(autobio){if(autobio===![])return;await ryuu[_0xce4de5(0x2bd,0x279,0x2bf,0x2a0,0x2cd)+_0x1552b3(0x3ab,0x38f,0x3a5,0x3ae,0x3d9)](global[_0xce4de5(0x285,0x235,0x267,0x26d,0x26d)+'ot']+(_0x1552b3(0x389,0x370,0x3b9,0x3a9,0x371)+_0x24a11f(0x16b,0x15f,0x1a0,0x18c,0x15e)+_0x1552b3(0x38e,0x352,0x394,0x37a,0x38a)+_0x24a11f(0x1aa,0x17b,0x1a0,0x189,0x154)+_0xce4de5(0x24e,0x272,0x239,0x26f,0x281)+_0xce4de5(0x2b7,0x282,0x2aa,0x282,0x269)+_0x1012df(-0x1e5,-0x1fc,-0x218,-0x202,-0x202)+_0x24a11f(0x1e2,0x19f,0x198,0x1b8,0x1e2)+_0xce4de5(0x2a9,0x2a1,0x26d,0x28a,0x28f))+runtime(process[_0x24a11f(0x1b1,0x1a1,0x1d4,0x1a3,0x1b1)+'e']()));}abtn=ucapanWaktu1+(_0x1552b3(0x3f8,0x3dc,0x3f1,0x3d1,0x3f7)+'*')+pushname+_0x1552b3(0x3bb,0x3b4,0x3ab,0x393,0x3b9);var _0x5d7cec={};_0x5d7cec[_0x1552b3(0x3cd,0x3de,0x39a,0x3c7,0x3e9)+_0x15e4d4(-0x1b0,-0x1d0,-0x1e2,-0x1d6,-0x17f)+'t']=_0x1552b3(0x39f,0x37f,0x39f,0x36a,0x372)+_0xce4de5(0x24e,0x253,0x27b,0x27a,0x262)+_0xce4de5(0x2c2,0x263,0x2a7,0x295,0x2a1);function _0xce4de5(_0x337fda,_0x1accf9,_0x15c157,_0x7d7a38,_0x16737d){return _0x1838(_0x7d7a38-0x1eb,_0x15c157);}_0x5d7cec[_0x1552b3(0x3c4,0x3c2,0x3f5,0x3cb,0x3ec)]=_0x24a11f(0x1c2,0x1e7,0x1c1,0x1c0,0x199)+_0x15e4d4(-0x1b5,-0x1c7,-0x18e,-0x1ba,-0x1ba)+_0x1012df(-0x1ba,-0x1ca,-0x1c3,-0x1be,-0x18a)+_0xce4de5(0x266,0x2c7,0x26c,0x294,0x26d)+_0x15e4d4(-0x1fb,-0x212,-0x1f3,-0x211,-0x222)+_0x15e4d4(-0x1f0,-0x1d1,-0x1f7,-0x20e,-0x1f6)+'z';var _0x288375={};_0x288375[_0x24a11f(0x1c3,0x1cb,0x1b6,0x1b3,0x1dd)+_0x15e4d4(-0x202,-0x234,-0x239,-0x1c9,-0x1c9)]=_0x5d7cec;var _0x39c21b={};function _0x15e4d4(_0x584046,_0x481ee2,_0x2c2d1c,_0x47fee0,_0x58fedf){return _0x1838(_0x584046- -0x271,_0x2c2d1c);}_0x39c21b[_0x24a11f(0x192,0x1dc,0x18d,0x1b2,0x1da)+_0x1552b3(0x3c1,0x39e,0x3c0,0x3be,0x3a2)+'t']=_0x15e4d4(-0x1df,-0x1ea,-0x1c6,-0x1dd,-0x1cd)+_0x1552b3(0x364,0x372,0x37d,0x385,0x3b0),_0x39c21b[_0x15e4d4(-0x1a3,-0x1a4,-0x1a2,-0x1dd,-0x178)]=global[_0x24a11f(0x18c,0x1c7,0x1be,0x1c6,0x1d9)];var _0xe2e6f4={};_0xe2e6f4[_0xce4de5(0x2be,0x2dd,0x287,0x2b6,0x2c2)+_0x24a11f(0x174,0x133,0x176,0x157,0x121)]=_0x39c21b;var _0xb30ae2={};_0xb30ae2[_0x1552b3(0x38d,0x3b6,0x3c4,0x3c7,0x39a)+_0x1012df(-0x1a9,-0x1d8,-0x1d2,-0x1bf,-0x188)+'t']=_0x1552b3(0x3a9,0x388,0x399,0x3a5,0x3ba)+_0x1552b3(0x348,0x366,0x369,0x372,0x38f),_0xb30ae2['id']=_0xce4de5(0x28a,0x26f,0x245,0x274,0x297);var _0x5e8481={};_0x5e8481[_0x1012df(-0x1df,-0x1c1,-0x1d5,-0x1d5,-0x1b9)+_0x24a11f(0x169,0x1a4,0x1d1,0x19a,0x1a0)+_0x15e4d4(-0x1f2,-0x202,-0x1de,-0x227,-0x207)+'n']=_0xb30ae2;var _0x3a3ec1={};_0x3a3ec1[_0x24a11f(0x1d8,0x1b8,0x1be,0x1b2,0x1e5)+_0x24a11f(0x1d8,0x1e3,0x19d,0x1a9,0x171)+'t']=_0x1552b3(0x3b9,0x37f,0x395,0x38b,0x3be)+_0x24a11f(0x1aa,0x1ca,0x19a,0x1c2,0x1a9),_0x3a3ec1['id']=_0x15e4d4(-0x1cc,-0x1f5,-0x1cb,-0x1a3,-0x195);var _0x3fdb89={};_0x3fdb89[_0x1012df(-0x1e5,-0x1f7,-0x1ef,-0x1d5,-0x1e1)+_0x15e4d4(-0x1bf,-0x1ba,-0x1c6,-0x186,-0x189)+_0x1552b3(0x386,0x3a5,0x382,0x37c,0x399)+'n']=_0x3a3ec1;var _0x5f0b76={};_0x5f0b76[_0x1552b3(0x3bf,0x39c,0x3c4,0x3c7,0x395)+_0x15e4d4(-0x1b0,-0x1c5,-0x1a6,-0x1ba,-0x196)+'t']=_0x24a11f(0x198,0x1aa,0x1a0,0x195,0x184)+_0x1552b3(0x35b,0x36b,0x367,0x375,0x38a),_0x5f0b76['id']=_0x1012df(-0x1d1,-0x1e1,-0x1cd,-0x1f5,-0x1d2)+'nu';var _0x5ef2d2={};_0x5ef2d2[_0x1012df(-0x1ee,-0x1cb,-0x202,-0x1d5,-0x1e7)+_0x1552b3(0x3d2,0x39c,0x3b3,0x3af,0x395)+_0x1012df(-0x1ed,-0x1d2,-0x21c,-0x201,-0x1f3)+'n']=_0x5f0b76;var btnsmenu=[_0x288375,_0xe2e6f4,_0x5e8481,_0x3fdb89,_0x5ef2d2],_0x29b334={};_0x29b334[_0xce4de5(0x27f,0x2b6,0x2c6,0x2b5,0x2b8)+_0x1012df(-0x1df,-0x1a8,-0x1af,-0x1bf,-0x1cd)+'t']=_0x1552b3(0x384,0x384,0x397,0x36a,0x337)+_0x15e4d4(-0x1e2,-0x1ea,-0x1d7,-0x1c8,-0x1e4)+_0x24a11f(0x17c,0x15a,0x1a6,0x192,0x1c5),_0x29b334[_0x1012df(-0x1b0,-0x1ac,-0x1e8,-0x1b2,-0x1ab)]=_0x15e4d4(-0x199,-0x193,-0x169,-0x1d1,-0x180)+_0x1012df(-0x1bd,-0x1df,-0x1e4,-0x1c4,-0x1fd)+_0x1012df(-0x198,-0x1b3,-0x1c4,-0x1be,-0x18c)+_0xce4de5(0x272,0x2c7,0x26b,0x294,0x296)+_0x24a11f(0x162,0x17c,0x145,0x15e,0x14c)+_0x24a11f(0x15f,0x138,0x148,0x169,0x1a0)+'z';var _0x57f351={};_0x57f351[_0x15e4d4(-0x1a6,-0x1c2,-0x180,-0x1d1,-0x173)+_0x1012df(-0x208,-0x1eb,-0x222,-0x211,-0x221)]=_0x29b334;function _0x24a11f(_0x2227cd,_0x1ef873,_0x37c623,_0x2f7f95,_0x1d30b8){return _0x1838(_0x2f7f95-0xe8,_0x37c623);}var _0x2471e9={};_0x2471e9[_0x24a11f(0x1c1,0x1d3,0x1b1,0x1b2,0x183)+_0x15e4d4(-0x1b0,-0x1d6,-0x17d,-0x1dd,-0x17e)+'t']=_0x1012df(-0x227,-0x223,-0x211,-0x1ee,-0x1f2)+_0x1012df(-0x1c0,-0x228,-0x216,-0x1f8,-0x1d6),_0x2471e9[_0x15e4d4(-0x1a3,-0x1a5,-0x1be,-0x192,-0x172)]=global[_0x1012df(-0x1b5,-0x19b,-0x1d9,-0x1a2,-0x1b0)];var _0x49d4db={};_0x49d4db[_0x1012df(-0x1a5,-0x1d9,-0x18d,-0x1b5,-0x1dd)+_0xce4de5(0x280,0x24c,0x267,0x25a,0x269)]=_0x2471e9;var _0x485ca2={};_0x485ca2[_0x15e4d4(-0x1a7,-0x18f,-0x177,-0x1cb,-0x1ab)+_0x1012df(-0x1ef,-0x1ec,-0x186,-0x1bf,-0x1ef)+'t']=_0x15e4d4(-0x1c9,-0x1e2,-0x1ef,-0x1f2,-0x1c0)+_0x1012df(-0x1f9,-0x23b,-0x23a,-0x20b,-0x226),_0x485ca2['id']=_0xce4de5(0x275,0x252,0x266,0x274,0x2a2);var _0xbb096={};_0xbb096[_0x1552b3(0x386,0x3bb,0x3ba,0x3a8,0x385)+_0x1012df(-0x1ee,-0x1f3,-0x1e0,-0x1ce,-0x1ba)+_0x24a11f(0x16e,0x14d,0x16c,0x167,0x19e)+'n']=_0x485ca2;var _0x392e9b={};_0x392e9b[_0xce4de5(0x2ab,0x2bc,0x2d1,0x2b5,0x292)+_0x1012df(-0x1bc,-0x1cd,-0x1e7,-0x1bf,-0x195)+'t']=_0x1012df(-0x21d,-0x1c8,-0x1eb,-0x1f2,-0x1e9)+_0x24a11f(0x1b7,0x1c3,0x1de,0x1c2,0x1f9),_0x392e9b['id']=_0xce4de5(0x25b,0x2ad,0x2ad,0x290,0x2b4);var _0x42b717={};_0x42b717[_0x15e4d4(-0x1c6,-0x1e4,-0x1f6,-0x1e8,-0x1d3)+_0x15e4d4(-0x1bf,-0x1cf,-0x1bf,-0x1f7,-0x1dc)+_0x24a11f(0x139,0x19c,0x16d,0x167,0x19a)+'n']=_0x392e9b;var _0x2c5345={};_0x2c5345[_0x1012df(-0x1b5,-0x1ac,-0x1de,-0x1b6,-0x1cb)+_0x24a11f(0x1de,0x1af,0x1e0,0x1a9,0x176)+'t']=_0x15e4d4(-0x1d5,-0x1ec,-0x201,-0x1d5,-0x1a3)+_0x1552b3(0x39f,0x3d3,0x394,0x3bc,0x383)+'🏆',_0x2c5345['id']=_0x15e4d4(-0x205,-0x23c,-0x207,-0x211,-0x1de);var _0x4ec127={};_0x4ec127[_0xce4de5(0x29f,0x2c1,0x29e,0x296,0x276)+_0xce4de5(0x2b0,0x293,0x2a0,0x29d,0x274)+_0x24a11f(0x174,0x172,0x16f,0x167,0x132)+'n']=_0x2c5345;var btnsall=[_0x57f351,_0x49d4db,_0xbb096,_0x42b717,_0x4ec127],_0x115895={};_0x115895[_0x1552b3(0x3f4,0x3c8,0x3a1,0x3c7,0x3cb)+_0x1012df(-0x19d,-0x194,-0x1ae,-0x1bf,-0x188)+'t']=_0x1012df(-0x203,-0x240,-0x230,-0x213,-0x243)+_0x1012df(-0x217,-0x1e7,-0x225,-0x1f1,-0x20a)+_0x1012df(-0x1dc,-0x1cf,-0x1d5,-0x1d6,-0x1b4),_0x115895[_0x15e4d4(-0x1a3,-0x1da,-0x1b3,-0x182,-0x1cc)]=_0x1012df(-0x171,-0x17c,-0x181,-0x1a8,-0x195)+_0xce4de5(0x2ad,0x2a8,0x299,0x2a7,0x294)+_0x1552b3(0x3f6,0x3db,0x3ef,0x3bf,0x3a5)+_0xce4de5(0x2a8,0x2b1,0x276,0x294,0x28b)+_0x1012df(-0x212,-0x237,-0x1e6,-0x20a,-0x1e9)+_0x1552b3(0x34d,0x394,0x3b7,0x37e,0x357)+'z';var _0x47d008={};_0x47d008[_0xce4de5(0x29b,0x2da,0x27f,0x2b6,0x2f0)+_0x1552b3(0x344,0x396,0x348,0x36c,0x36d)]=_0x115895;function _0x1012df(_0x2dbfaa,_0x3d588f,_0x53f522,_0x2e0b4f,_0x292625){return _0x1838(_0x2e0b4f- -0x280,_0x2dbfaa);}var _0x55929f={};_0x55929f[_0x1552b3(0x3f9,0x3ab,0x3ec,0x3c7,0x38d)+_0x1552b3(0x3e8,0x3c0,0x3cf,0x3be,0x3b4)+'t']=_0x24a11f(0x14d,0x172,0x170,0x17a,0x158)+_0x24a11f(0x1a6,0x171,0x15d,0x170,0x141),_0x55929f[_0x1012df(-0x1be,-0x1a6,-0x17c,-0x1b2,-0x1be)]=global[_0xce4de5(0x2e1,0x2a8,0x2a7,0x2c9,0x2d5)];var _0x949603={};_0x949603[_0xce4de5(0x2da,0x2ce,0x2e5,0x2b6,0x294)+_0x1012df(-0x1e5,-0x22f,-0x1f2,-0x211,-0x217)]=_0x55929f;var _0x5057c3={};_0x5057c3[_0x24a11f(0x1d1,0x1b3,0x197,0x1b2,0x1ae)+_0x24a11f(0x188,0x194,0x1c5,0x1a9,0x180)+'t']=_0x15e4d4(-0x1c9,-0x1ce,-0x1f6,-0x1e5,-0x1f0)+_0x24a11f(0x182,0x182,0x147,0x15d,0x18a),_0x5057c3['id']=_0x1012df(-0x1d4,-0x215,-0x1d2,-0x1f7,-0x20a);var _0x1fe8d4={};_0x1fe8d4[_0xce4de5(0x2b8,0x267,0x293,0x296,0x2be)+_0x24a11f(0x162,0x1d1,0x1b9,0x19a,0x160)+_0x15e4d4(-0x1f2,-0x1c7,-0x207,-0x1f4,-0x20d)+'n']=_0x5057c3;function _0x1838(_0x48a6c6,_0x18388d){var _0x27d4b2=_0x48a6();return _0x1838=function(_0x38b3c9,_0x2613a5){_0x38b3c9=_0x38b3c9-(0x14a3+0x991+-0x1dc9);var _0x462478=_0x27d4b2[_0x38b3c9];return _0x462478;},_0x1838(_0x48a6c6,_0x18388d);}var _0x3ce11c={};_0x3ce11c[_0x24a11f(0x1d4,0x1c4,0x1a6,0x1b2,0x1a2)+_0xce4de5(0x28f,0x2b4,0x2b7,0x2ac,0x28c)+'t']=_0x1012df(-0x1e5,-0x22a,-0x1e6,-0x1f2,-0x20c)+_0x1012df(-0x1dd,-0x1af,-0x19e,-0x1a6,-0x1a3),_0x3ce11c['id']=_0xce4de5(0x262,0x28d,0x28b,0x290,0x2bf);var _0x5da467={};_0x5da467[_0x1012df(-0x1dc,-0x1dc,-0x1da,-0x1d5,-0x209)+_0xce4de5(0x28e,0x2aa,0x2cf,0x29d,0x28b)+_0x1012df(-0x1ef,-0x1cd,-0x1d0,-0x201,-0x1f6)+'n']=_0x3ce11c;var _0xa7a01={};_0xa7a01[_0x1012df(-0x1b2,-0x1a8,-0x19a,-0x1b6,-0x1bd)+_0x24a11f(0x192,0x199,0x172,0x1a9,0x1ad)+'t']=_0xce4de5(0x240,0x231,0x241,0x259,0x273)+_0x1012df(-0x191,-0x1e4,-0x19e,-0x1ca,-0x1e5)+_0x1012df(-0x207,-0x208,-0x1e1,-0x1d2,-0x1ee)+'⛩️',_0xa7a01['id']=_0xce4de5(0x254,0x2b3,0x27a,0x28b,0x2c3);var _0x635e0b={};_0x635e0b[_0x24a11f(0x18e,0x1ac,0x17b,0x193,0x1b6)+_0x1012df(-0x1d8,-0x1eb,-0x1d5,-0x1ce,-0x201)+_0x1012df(-0x22d,-0x21a,-0x1fc,-0x201,-0x1db)+'n']=_0xa7a01;var btnsmenu2=[_0x47d008,_0x949603,_0x1fe8d4,_0x5da467,_0x635e0b],_0x89acda={};_0x89acda[_0x1552b3(0x3a7,0x3a5,0x3d5,0x3c7,0x3ba)+_0xce4de5(0x2a5,0x2e5,0x2cb,0x2ac,0x2d3)+'t']=_0x24a11f(0x15c,0x182,0x162,0x155,0x18c)+_0xce4de5(0x24e,0x247,0x299,0x27a,0x291)+_0x15e4d4(-0x1c7,-0x18e,-0x1c4,-0x1f3,-0x1ff),_0x89acda[_0x15e4d4(-0x1a3,-0x170,-0x1a8,-0x194,-0x1ae)]=_0x15e4d4(-0x199,-0x170,-0x1cf,-0x1b6,-0x1b5)+_0x24a11f(0x18b,0x1cf,0x1ce,0x1a4,0x174)+_0xce4de5(0x277,0x2d9,0x2e3,0x2ad,0x2b0)+_0x15e4d4(-0x1c8,-0x195,-0x1be,-0x193,-0x1e0)+_0x1552b3(0x353,0x369,0x33b,0x373,0x35b)+_0x1012df(-0x221,-0x205,-0x1f7,-0x1ff,-0x215)+'z';var _0x350174={};_0x350174[_0x1012df(-0x1d0,-0x1be,-0x1b7,-0x1b5,-0x1af)+_0x1552b3(0x385,0x3a2,0x36e,0x36c,0x353)]=_0x89acda;var _0x60153f={};_0x60153f[_0x24a11f(0x1d0,0x1c6,0x17b,0x1b2,0x1ce)+_0x1552b3(0x3df,0x3d3,0x3e0,0x3be,0x3f8)+'t']=_0x1552b3(0x38c,0x3b8,0x384,0x38f,0x38d)+_0x1552b3(0x3aa,0x395,0x37e,0x385,0x37c),_0x60153f[_0x24a11f(0x1c1,0x1c6,0x1ad,0x1b6,0x1db)]=global[_0x1012df(-0x1d5,-0x18d,-0x199,-0x1a2,-0x1a1)];var _0x47bb99={};_0x47bb99[_0x24a11f(0x1a1,0x190,0x1b8,0x1b3,0x1c1)+_0xce4de5(0x22e,0x252,0x282,0x25a,0x22f)]=_0x60153f;function _0x48a6(){var _0x4667d4=['424972sqDpOh','http:','OPTok','\x20👨','k\x20Men','1qGDWvY','11940zNDOXp','webme','502812zpzuxp','tqto','Sourc','Tampi','tton','\x20Untu','Naik\x20','akan\x20','*\x20->\x20','Sewa\x20','\x20📖','/Ryuu','Bot\x20💸','enu\x20📖','users','elah\x20','*.pro','evelu','d\x20By\x20','|\x20⏰\x20R','Butto','const','kaBot','namab','eoQcv','a\x20Tea','xCIvx','fNCLH','14hzPJyK','te\x20🔗','rules','KmdVP','allme','VTKIt','FesiQ','Owner','e\x20Cod','(((.+','exp','Websi','ructo','!\x0a*','ing','*\x0a\x0a','m\x20🕊️\x20|','autol','apply','*\x0aGun','amu\x20T','Thank','TVrGk','97857VeldcU','e\x20:\x20','list','Ryuuk','Selam','juJKk','reate','owner','sende','6odlKRS','Rules','com/c','e\x20💠️','quick','\x20||\x20C','All\x20M','Menu\x20','ucHuq','38670JJFcFU','atus','Reply','plier','at,\x20K','setSt','lkan\x20','ocfDg','multi','JZznN','sgCYj','uptim','//you','searc','398264ymovcQ','s\x20To\x20','\x0a\x20\x20','ayTex','tube.','gecek','ZSToY','1111yZTufV','file*','trim','PRpIt','level','displ','urlBu','sewab','RuAXM','url','Level','untim','ChHYr','rflVN','331052vRgMMk','\x20Kak\x20',')+)+)','toStr'];_0x48a6=function(){return _0x4667d4;};return _0x48a6();}var _0x3b7f8a={};_0x3b7f8a[_0x1552b3(0x3b7,0x3ea,0x3cb,0x3c7,0x3ae)+_0x1552b3(0x398,0x3ad,0x3f2,0x3be,0x3c5)+'t']=_0x24a11f(0x148,0x130,0x13a,0x15c,0x12f)+_0x24a11f(0x170,0x15f,0x181,0x15f,0x165),_0x3b7f8a['id']=_0x1552b3(0x3c8,0x3e1,0x3a7,0x3c9,0x3f4)+'ot';function _0x1552b3(_0x7a1f6d,_0x106958,_0x476102,_0x3a5096,_0x21519c){return _0x1838(_0x3a5096-0x2fd,_0x476102);}var _0x1a4906={};_0x1a4906[_0x15e4d4(-0x1c6,-0x1d7,-0x199,-0x1a7,-0x1a9)+_0x15e4d4(-0x1bf,-0x1a7,-0x18f,-0x1a4,-0x1b1)+_0xce4de5(0x24c,0x291,0x279,0x26a,0x286)+'n']=_0x3b7f8a;var btnsmenu3=[_0x350174,_0x47bb99,_0x1a4906],user=global['db'][_0xce4de5(0x29c,0x288,0x26f,0x264,0x261)][m[_0x1552b3(0x388,0x399,0x36c,0x3a3,0x381)+'r']];if(!user[_0x1552b3(0x393,0x3b2,0x397,0x395,0x3b9)+_0x24a11f(0x18b,0x17f,0x17e,0x164,0x161)+'p'])return!(-0x2463+-0x28*0x5d+0x32eb);let before=user[_0x1552b3(0x3e4,0x3e9,0x3e4,0x3c6,0x3b2)]*(-0x9f*-0x2d+-0xbb*0x1b+0x1*-0x839);while(canLevelUp(user[_0xce4de5(0x2d1,0x2b0,0x2c5,0x2b4,0x2ee)],user[_0x1552b3(0x37e,0x390,0x3c0,0x38e,0x3c3)],global[_0x15e4d4(-0x1b9,-0x1ca,-0x1be,-0x189,-0x1d3)+_0x1552b3(0x3c4,0x3b6,0x3a8,0x3b0,0x3aa)]))user[_0x1012df(-0x1e6,-0x1b9,-0x18c,-0x1b7,-0x19b)]++;before!==user[_0x1552b3(0x3c2,0x3f6,0x3d0,0x3c6,0x3ff)]&&reply((_0x24a11f(0x1ab,0x1c1,0x16f,0x18a,0x1bc)+_0xce4de5(0x2d1,0x26c,0x2d8,0x29f,0x2d7)+_0xce4de5(0x283,0x286,0x252,0x286,0x25b)+_0xce4de5(0x28c,0x27b,0x28d,0x265,0x284)+_0x1552b3(0x374,0x380,0x39e,0x36e,0x391)+_0xce4de5(0x2b5,0x2dc,0x280,0x2ba,0x28f)+_0x1552b3(0x35e,0x3ad,0x3b4,0x391,0x3b1)+before+(_0x1552b3(0x378,0x38f,0x34a,0x370,0x336)+'*')+user[_0x1552b3(0x39e,0x3f7,0x3d0,0x3c6,0x3d1)]+(_0xce4de5(0x2b2,0x275,0x24e,0x285,0x288)+_0x1552b3(0x34e,0x3a8,0x3a0,0x36f,0x35f)+_0x15e4d4(-0x1f6,-0x1e3,-0x1df,-0x1ed,-0x21f)+_0x15e4d4(-0x1ab,-0x1b1,-0x1b4,-0x1d1,-0x1ca)+_0xce4de5(0x24b,0x295,0x28a,0x25b,0x252)+_0x15e4d4(-0x196,-0x17a,-0x18d,-0x1cb,-0x1d0)+_0x1012df(-0x1af,-0x198,-0x188,-0x1bd,-0x1a4)+_0x15e4d4(-0x1b1,-0x197,-0x18c,-0x192,-0x17e)))[_0x1552b3(0x3e0,0x3f6,0x391,0x3c4,0x38d)]());
// 🗿 CASE NYA
switch(command) {
// CASE RULES
case 'rules': case 'ruls':
let btnruls = [{
urlButton: {
displayText: 'Website 🔗',
url: global.webme
}
}]
imgrules = await getBuffer(picak+'Rules')
ryuu.send5ButImg(m.chat, rules(), `© ${global.namaowner}`, imgrules, btnruls)
break
// CASE INFO BOT
case 'listpc': {
if (!isCreator) return reply(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`
}
ryuu.sendTextWithMentions(m.chat, tekslist, m)
}
break
case 'listgc': {
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 ryuu.groupMetadata(e)
tekslistgc += `📛 *Nama :* ${metadata.subject}\n`
tekslistgc += `👤 *Owner Grup :* @${metadata.owner.split('@')[0]}\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`
}
ryuu.sendTextWithMentions(m.chat, tekslistgc, m)
}
break
case 'listonline': case 'liston': {
if(!m.isGroup) reply(mess.group)
let id = args && /\d+\-\[email protected]/.test(args[0]) ? args[0] : m.chat
let online = [...Object.keys(store.presences[id]), botNumber]
ryuu.sendText(m.chat, '⏰ List Online:\n\n' + online.map(v => '🌱 @' + v.replace(/@.+/, '')).join`\n`, m, { mentions: online })
}
break
//CASE absen
case 'absen': {
if (!m.isGroup) return reply(mess.group)
if (!isGroupAdmins) return reply(mess.admin)
if (m.chat in absen) throw `_Masih ada absen di chat ini!_\n\n*${prefix}hapusabsen* - untuk menghapus absen`
if (!text) throw `Masukkan Alasan Melakukan absen, Example: *${prefix + command} Pagi Hari*`
m.reply(`absen dimulai!\n\n*${prefix}hadir* - untuk ya\n*${prefix}tidakhadir* - untuk tidak\n*${prefix}cekabsen* - untuk mengecek absen\n*${prefix}hapusabsen* - untuk menghapus absen`)
absen[m.chat] = [q, [], []]
await sleep(1000)
hadir = absen[m.chat][1]
tidakhadir = absen[m.chat][2]
teks_absen = `*ABSEN IN THE DAY 🌤️*
*Alasan :* ${absen[m.chat][0]}
┌〔 *Member Hadir* 〕
│
├ *Hadir :* ${absen[m.chat][1].length}
│
│
└────
┌〔 *Member Tidak Hadir* 〕
│
├ *Tidak Hadir :* ${absen[m.chat][2].length}
│
│
└────
*${prefix}hapusabsen* - untuk menghapus absen`
let buttonsabsen = [{buttonId: `hadir`, buttonText: {displayText: 'HADIR 🏅'}, type: 1},{buttonId: `tidakhadir`, buttonText: {displayText: 'TIDAK HADIR 📝'}, type: 1}]
let buttonMessageabsen = {
text: teks_absen,
footer: 'Jika Button Tidak Muncul Ketik Hadir/Tidakhadir',
buttons: buttonsabsen,
headerType: 1
}
ryuu.sendMessage(m.chat, buttonMessageabsen)
}
break
case 'hadir': {
if (!m.isGroup) return reply(mess.group)
if (!(m.chat in absen)) throw `_*Tidak ada absen digrup ini!*_\n\n*${prefix}absen* - untuk memulai absen`
isabsen = absen[m.chat][1].concat(absen[m.chat][2])
wasabsen = isabsen.includes(m.sender)
if (wasabsen) throw 'Kamu Sudah absen'
absen[m.chat][1].push(m.sender)
menabsen = absen[m.chat][1].concat(absen[m.chat][2])
teks_absen = `*ABSEN IN THE DAY 🌤️*
*Alasan :* ${absen[m.chat][0]}
┌〔 *Member Hadir* 〕
│
├ *Hadir :* ${absen[m.chat][1].length}
${absen[m.chat][1].map((v, i) => `├ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
│
└────
┌〔 *Member Tidak Hadir* 〕
│
├ *Tidak Hadir :* ${absen[m.chat][2].length}
${absen[m.chat][2].map((v, i) => `├ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
│
└────
*${prefix}hapusabsen* - untuk menghapus absen`
let buttonshadir = [{buttonId: `hadir`, buttonText: {displayText: 'HADIR 🏅'}, type: 1},{buttonId: `tidakhadir`, buttonText: {displayText: 'TIDAK HADIR 📝'}, type: 1}]
let buttonMessagehadir = {
text: teks_absen,
footer: 'Jika Button Tidak Muncul Ketik Hadir/Tidakhadir',
buttons: buttonshadir,
headerType: 1,
mentions: menabsen
}
ryuu.sendMessage(m.chat, buttonMessagehadir)
}
break
case 'tidakhadir': {
if (!m.isGroup) return reply(mess.group)
if (!(m.chat in absen)) throw `_*Tidak ada absen digrup ini!*_\n\n*${prefix}absen* - untuk memulai absen`
isabsen = absen[m.chat][1].concat(absen[m.chat][2])
wasabsen = isabsen.includes(m.sender)
if (wasabsen) throw 'Kamu Sudah absen'
absen[m.chat][2].push(m.sender)
menabsen = absen[m.chat][1].concat(absen[m.chat][2])
teks_absen = `*ABSEN IN THE DAY 🌤️*
*Alasan :* ${absen[m.chat][0]}
┌〔 *Member Hadir* 〕
│
├ *Hadir :* ${absen[m.chat][1].length}
${absen[m.chat][1].map((v, i) => `├ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
│
└────
┌〔 *Member Tidak Hadir* 〕
│
├ *Tidak Hadir :* ${absen[m.chat][2].length}
${absen[m.chat][2].map((v, i) => `├ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
│
└────
*${prefix}hapusabsen* - untuk menghapus absen`
let buttonstidakhadir = [{buttonId: `hadir`, buttonText: {displayText: 'HADIR 🏅'}, type: 1},{buttonId: `tidakhadir`, buttonText: {displayText: 'TIDAK HADIR 📝'}, type: 1}]
let buttonMessagetidakhadir = {
text: teks_absen,
footer: 'Jika Button Tidak Muncul Ketik Hadir/Tidakhadir',
buttons: buttonstidakhadir,
headerType: 1,
mentions: menabsen
}
ryuu.sendMessage(m.chat, buttonMessagetidakhadir)
}
break
case 'cekabsen':
if (!m.isGroup) return reply(mess.group)
if (!(m.chat in absen)) throw `_*Tidak ada absen digrup ini!*_\n\n*${prefix}absen* - untuk memulai absen`
teks_absen = `*ABSEN IN THE DAY 🌤️*
*Alasan :* ${absen[m.chat][0]}
┌〔 *Member Hadir* 〕
│
├ Total: ${hadir.length}
${absen[m.chat][1].map((v, i) => `├ ${i + 1}. @${v.split`@`[0]}`).join('\n')}
│
└────
┌〔 *Member Tidak Hadir* 〕
│
├ Total: ${tidakhadir.length}