forked from zim-bot/zimbot-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZimbot.js
9081 lines (8542 loc) ยท 335 KB
/
Zimbot.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
// โงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโงโง
//โฎZIM BOT INC 2022 ยฎ๏ธALL RIGHTS RESERVED
//โฎ
//โฎFORK AND DON'T FORGET TO GIVE A STAR
//โฎ
//โฎTHIS SOFTWARE IS UNDER UZ COPYRIGHT
//โฎ
//โฎREPORT ABUSE OF THIS SOFTWARE EMAIL US
//โฎreinhardtuna@mail.uk
//โฎWHATSAPP US : +44 7441 437150
//โฎYOUTUBE CHANNELL: https://youtube.com/c/DRIPSOFC
//โฎ
//โฐโโโโโโโโโโโโโโโโโโโโโโโโโ
//
//โโโโโโโโโโโโโโโโโโโโโโโโโโ
//โTHIS SOFTWARE INCLUDES
//โSOME ENCRYPTED FILES
//โ
//โTHANKS FOR CHOOSING ZIMBOT
//โI WROTE THIS SCRIPT BY MYSELF THIS SCRIPT IS FOR EVERYONE DONT SELL IT
//โโโโโโโโโโโโโโโโโโโโโโโโโโ
//
process.on('uncaughtException', console.error)
require('./bot')
const { BufferJSON, WA_DEFAULT_EPHEMERAL, generateWAMessageFromContent, WAZimBotIncection, MessageType, proto, generateWAMessageContent, generateWAMessage, prepareWAMessageMedia, areJidsSameUser, getContentType, fetchLatestBaileysVersion } = require('@adiwajshing/baileys')
const fs = require('fs')
const util = require('util')
const crypto = require('crypto')
const chalk = require('chalk')
const { exec, spawn, execSync } = require('child_process')
const axios = require('axios')
const { fetchUrl, isUrl, processTime } = require("./lib/myfunc")
const path = require('path')
const url = require('url')
const os = require('os')
const xa = require('xfarr-api')
const hx = require('hxz-api')
const maker = require('mumaker')
const fetch = require('node-fetch')
const { Readability } = require('@mozilla/readability');
const moment = require('moment-timezone')
const { JSDOM } = require('jsdom')
const speed = require('performance-now')
const { performance } = require('perf_hooks')
const { Primbon } = require('scrape-primbon')
const Config = require('./drips');
const simpleGit = require('simple-git');
const git = simpleGit();
const Heroku = require('heroku-client');
const { PassThrough } = require('stream');
const { getLinkPreview, getPreviewFromContent } = require("link-preview-js");
const primbon = new Primbon()
const { smsg, formatp, tanggal, formatDate, getTime, sleep, clockString, fetchJson, getBuffer, jsonformat, format, parseMention, getRandom } = require('./lib/myfunc')
/*let { addLevelingId, addLevelingLevel, addLevelingXp, getLevelingId, getLevelingLevel, getLevelingXp } = require("./lib/lvlfunction")*/
const speedofbot = require("performance-now")
const { mediafireDl } = require('./lib/mediafire.js')
const { lirikLagu } = require('./lib/lirik.js')
const { fromBuffer } = require('file-type')
const mel = require('kitsune-api');
let { msgFilter } = require('./Zimbot/zimbotii.js')
const { Boom } = require("@hapi/boom")
const ffmpeg = require('fluent-ffmpeg')
const { checkPetualangUser, addInventori, addBesi, sellBesi, getBesi, addDm, sellDm, getDm, addEmas, sellEmas, getEmas, addFish, sellFish, getFish } = require('./tez.js')
const { addLevelingId, addLevelingLevel ,addLevelingXp, getLevelingId, getLevelingLevel, getLevelingXp } = require('./level')
const { isLimit, limitAdd, getLimit, giveLimit, addBalance, kurangBalance, getBalance, isGame, gameAdd, givegame, cekGLimit } = require('./limit')
//xp and leveling databaseโงโงโงโง
//message type
/* let drips = fs.readFileSync('./Zimbot/drips.jpg')
*/
//database
const dripsno = JSON.parse(fs.readFileSync('./database/antilink.json'))
const _level = JSON.parse(fs.readFileSync('./database/leveluser.json'))
const _petualang = JSON.parse(fs.readFileSync('./database/inventori.json'))
const balance = JSON.parse(fs.readFileSync('./database/balance.json'))
const dripsanti = JSON.parse(fs.readFileSync('./lib/rude.json'))
let bad = JSON.parse(fs.readFileSync('./lib/rude.json'))
global.db = JSON.parse(fs.readFileSync('./src/database.json'))
if (global.db) global.db = {
sticker: {},
database: {},
game: {},
settings: {},
others: {},
users: {},
chats: {},
...(global.db || {})
}
let tebaklagu = db.game.tebaklagu = []
let _family100 = db.game.family100 = []
let kuismath = db.game.math = []
let tebakgambar = db.game.tebakgambar = []
let tebakkata = db.game.tebakkata = []
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 vote = db.others.vote = []
module.exports = ZimBotInc = async (ZimBotInc, 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 = await ZimBotInc.decodeJid(ZimBotInc.user.id)
const isCreator = [botNumber, ...global.owner].map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender)
const itsMe = m.sender == botNumber ? true : false
const text = q = args.join(" ")
const from = m.chat
const quoted = m.quoted ? m.quoted : m
const mime = (quoted.msg || quoted).mimetype || ''
const isMedia = /image|video|sticker|audio/.test(mime)
const sender = m.isGroup ? (m.key.participant ? m.key.participant : m.participant) : m.key.remoteJid
const isPetualang = checkPetualangUser(sender)
//----GROUP METADATA----\\
const groupMetadata = m.isGroup ? await ZimBotInc.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 isAdmins = m.isGroup ? groupAdmins.includes(m.sender) : false
const isAntinsfw = m.isGroup ? dripsno.includes(m.chat) : false
const isPremium = isCreator || global.premium.map(v => v.replace(/[^0-9]/g, '') + '@s.whatsapp.net').includes(m.sender) || false
const antiToxic = m.isGroup ? dripsanti.includes(from) : false
const zimbotincv3 = body.slice(0).trim().split(/ +/).shift().toLowerCase()
//-----END HERE------\\
//rest apis
global.APIs = {
bx: 'https://bx-hunter.herokuapp.com',
dhnjing: 'https://dhnjing.xyz',
hardianto: 'https://hardianto-chan.herokuapp.com',
jonaz: 'https://jonaz-api-v2.herokuapp.com',
neoxr: 'https://neoxr-api.herokuapp.com',
nrtm: 'https://nurutomo.herokuapp.com',
pencarikode: 'https://pencarikode.xyz',
xteam: 'https://api.xteam.xyz',
zahir: 'https://zahirr-web.herokuapp.com',
zekais: 'http://zekais-api.herokuapp.com',
zeks: 'https://api.zeks.xyz',
}
global.APIKeys = {
'https://bx-hunter.herokuapp.com': 'Ikyy69',
'https://hardianto-chan.herokuapp.com': 'hardianto',
'https://neoxr-api.herokuapp.com': 'yntkts',
'https://pencarikode.xyz': 'pais',
'https://api.xteam.xyz': 'apikeymu',
'https://zahirr-web.herokuapp.com': 'zahirgans',
'https://api.zeks.xyz': 'apivinz',
}
const runtime = function (seconds) {
seconds = Number(seconds);
var d = Math.floor(seconds / (3600 * 24));
var h = Math.floor((seconds % (3600 * 24)) / 3600);
var m = Math.floor((seconds % 3600) / 60);
var s = Math.floor(seconds % 60);
var dDisplay = d > 0 ? d + (d == 1 ? " day, " : " Day, ") : "";
var hDisplay = h > 0 ? h + (h == 1 ? " hour, " : " Hour, ") : "";
var mDisplay = m > 0 ? m + (m == 1 ? " minute, " : " Minute, ") : "";
var sDisplay = s > 0 ? s + (s == 1 ? " second" : " Second") : "";
return dDisplay + hDisplay + mDisplay + sDisplay;
}
const reply = (teks) => {
ZimBotInc.sendMessage(m.chat, {text: teks, contextInfo: {"externalAdReply": {title: "ZIM BOT V4",mediaType: 3, renderLargerThumbnail: false, showAdAttribution: true, detectLinks: true,body: "DRIPS OFC", thumbnail: fs.readFileSync('./drips.jpg'),sourceUrl: ("https://youtu.be/KNu-gr2h7bo")}}})
}
const replay = (teks) => {
ZimBotInc.sendMessage(m.chat, {text: teks, contextInfo: {"externalAdReply": {title: "ZIM BOT V4",mediaType: 3, renderLargerThumbnail: false, showAdAttribution: true, body: "DRIPS OFC", thumbnail: fs.readFileSync('./drips.jpg'),sourceUrl: ("https://youtu.be/KNu-gr2h7bo")}}})
}
const drip = {
key : {
fromMe: false,
participant : '0@s.whatsapp.net'
},
contextInfo: {
forwardingScore: 9999,
isForwarded: false, // ini biar ada tulisannya diteruskan berkali-kali, jika ingin di hilangkan ganti true menjadi false
// Bagian ini sesuka kalian berkreasi :'v
showAdAttribution: true,
title: "ZIM BOT V4",
body: "GIVE IT A STAR",
mediaType: "VIDEO",
mediaUrl: `https://githb.com/zim-bot/zimbot-v4`,
description: 'DRIPS OFC',
previewType: "PHOTO",
thumbnail: fs.readFileSync('./drips.jpg'),
sourceUrl: "",
detectLinks: false,
}}
let blessedtuna = {
key : {
fromMe: false,
participant : '0@s.whatsapp.net'
},
message: {
documentMessage: {
showAdAttribution: true,
title: "ZIM BOT V4",
jpegThumbnail: fs.readFileSync('./drips.jpg')
}
}
}
let mudratunha = {
key: {
fromMe: false,
participant: `0@s.whatsapp.net`, ...(m.chat ?
{ remoteJid: "17608914335-1625305606@g.us" } : {})
},
message: {
"extendedTextMessage": {
"text":'SUB DRIPS OFC',
"title": 'ZIM BOT-V4',
'jpegThumbnail': fs.readFileSync('./drips.jpg')
}
}
}
let picaks = [flaming,fluming,flarun,flasmurf,mehk,awog,mohai,mhehe]
let picak = picaks[Math.floor(Math.random() * picaks.length)]
try {
let isNumber = x => typeof x === 'number' && !isNaN(x)
let limitUser = isPremium ? global.limitawal.premium : global.limitawal.free
let user = global.db.users[m.sender]
if (typeof user !== 'object') global.db.users[m.sender] = {}
if (user) {
if (!isNumber(user.afkTime)) user.afkTime = -1
if (!('afkReason' in user)) user.afkReason = ''
if (!isNumber(user.limit)) user.limit = limitUser
} else global.db.users[m.sender] = {
afkTime: -1,
afkReason: '',
limit: limitUser,
}
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 (!('chatbot' in chats)) chats.chatbot = false
if (!('antilink' in chats)) chats.antilink = false
if (!('antilinkyt' in chats)) chats.antilinkyt = false
if (!('autoblock' in chats)) chats.autoblock = false
if (!('isWelcome' in chats)) chats.isWelcome = false
if (!('antilinkall' in chats)) chats.antilinkall = false
if (!('antiytchannel' in chats)) chats.antiytchannel = false
if (!('antitiktok' in chats)) chats.antitiktok = false
if (!('antitelegram' in chats)) chats.antitelegram = false
if (!('antiinstagram' in chats)) chats.antiinstagram = false
if (!('antifb' in chats)) chats.antifb = false
if (!('antibule' in chats)) chats.antibule = false
if (!('antiwame' in chats)) chats.antiwame = false
if (!('wame' in chats)) chats.wame = false
if (!('antitwitter' in chats)) chats.antitwitter = false
if (!('antivn' in chats)) chats.antivn = false
if (!('antiphoto' in chats)) chats.antiphoto = false
if (!('antisticker' in chats)) chats.antisticker = false
if (!('antivideo' in chats)) chats.antivideo = false
} else global.db.chats[m.chat] = {
mute: false,
chatbot: false,
wame: false,
antilink: false,
antilinkyt: false,
isWelcome: false,
antilinkall: false,
antiytchannel: false,
antitiktok: false,
antitelegram: false,
antiinstagram: false,
antifb: false,
antibule: false,
antiwame: false,
antitwitter: false,
antisticker: false,
antiphoto: false,
antivn: false,
antivideo: false,
}
let setting = global.db.settings[botNumber]
if (typeof setting !== 'object') global.db.settings[botNumber] = {}
if (setting) {
if (!isNumber(setting.status)) setting.status = 0
if (!('autobio' in setting)) setting.autobio = true
if (!('templateImage' in setting)) setting.templateImage = false
if (!('templateLocation' in setting)) setting.templateLocation = false
if (!('templateGif' in setting)) setting.templateGif = false
if (!('templateMsg' in setting)) setting.templateMsg = false
if (!('templateList' in setting)) setting.templateList = false
if (!('templateDoc' in setting)) setting.templateDoc = true
if (!('chatbot' in setting)) setting.chatbot = false
if (!('templateZimbot' in setting)) setting.templateZimbot = false
if (!('grouponly' in setting)) setting.grouponly = false
if (!('autoblock' in setting)) setting.autoblock = false
} else global.db.settings[botNumber] = {
status: 0,
autobio: true,
templateImage: false,
templateLocation: false,
templateGif: false,
templateMsg: false,
templateList: false,
templateDoc: true,
templateZimbot: false,
chatbot: false,
grouponly: false,
autoblock: false,
}
} catch (err) {
console.error(err)
}
ZimBotInc.ws.on('CB:action,,battery', json => {
const batteryLevelStr = json[2][0][1].value
const batterylevel = parseInt (batteryLevelStr)
battre = batterylevel
})
ZimBotInc.ws.on('CB:action,,charger', json => {
const chargerLevelStr = json[2][0][1].value
const charging = parseInt (chargerLevelStr)
charger = charging
})
//public/self
if (!ZimBotInc.public) {
if (!m.key.fromMe) return
}
//push message to console && autoread
const Drips = require('drips-memes')
colors = ['red', 'white', 'black', 'blue', 'yellow', 'green']
let d = new Date(new Date + 3600000)
let locale = 'id'
let time = d.toLocaleString(locale, { hour: 'numeric', minute: 'numeric', second: 'numeric', timeZone: 'Africa/Harare'})
const { color } = require('./lib/color')
if (isCmd && !m.isGroup)
console.log(color('[ RECIEVED ]'), color(time, 'red'), color(`${command} [${args.length}]`), Drips.hr(), 'FROM', color(pushname))
if (isCmd && m.isGroup)
console.log(color('[ RECIEVED ]'), color(time, 'red'), color(`${command} [${args.length}]`), Drips.hr(), 'FROM', color(pushname), 'in', color(groupName))
//leveling
const levelRole = getLevelingLevel(sender, _level)
var role = 'bronz'
if (levelRole <= 3) {
role = 'Copper'
} else if (levelRole <= 5) {
role = 'Iron'
} else if (levelRole <= 7) {
role = 'Silver'
} else if (levelRole <= 10) {
role = 'Gold'
} else if (levelRole <= 12) {
role = 'Platinum'
} else if (levelRole <= 15) {
role = 'Mithril'
} else if (levelRole <= 18) {
role = 'Orichalcum'
} else if (levelRole <= 25) {
role = 'Adamantite'
} else if (levelRole <= 45) {
role = 'Good In Game'
}
var ikan = ['๐ณ','๐ฆ','๐ฌ','๐','๐','๐ ','๐ฆ','๐ฆ','๐ฆ','๐ก','๐']
var hewan = ['๐','๐ฆ','๐ฆ','๐','๐','๐','๐','๐']
var burung = ['๐ฆ','๐ท','๐','๐','๐ฆ','๐ฆ
','๐','๐ง','๐ฆ','๐ฆ']
var petnya = ['๐พ','๐บ','๐ฆ','๐ถ','๐ฐ']
var makan = ['๐ญ','๐ฎ','๐ฏ','๐','๐','๐','๐','๐','๐','๐','๐ก']
var buahan = ['๐','๐','๐','๐','๐','๐','๐','๐','๐']
//CHATBOT
if (global.dripsreadgroup) {
if (m.isGroup) { ZimBotInc.sendReadReceipt(m.chat, m.sender, [m.key.id]) }
}
if (global.dripsreadall) { if (m.message) { ZimBotInc.sendReadReceipt(m.chat, m.sender, [m.key.id]) }
}
if (global.dripsrecord) { if (m.chat) { ZimBotInc.sendPresenceUpdate('recording', m.chat) }
}
if (global.dripstyping) { if (m.chat) { ZimBotInc.sendPresenceUpdate('composing', m.chat) }
}
if (global.available) { if (m.chat) { ZimBotInc.sendPresenceUpdate('available', m.chat) }
}
if (global.unavailable) { if (m.chat) { ZimBotInc.sendPresenceUpdate('unavailable', m.chat) }
}
//RPG FUNCTION BY DRIPS
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//removing credits is not any option
}
}
function pickRandom(list) {
return list[Math.floor(list.length * Math.random())]
}
let beedrips = [f1,f2,f3,f4,f5,f6]
let dripsee = pickRandom(beedrips)
/*
if (budy.includes("://chat.whatsapp.com/")) {
console.log(
color("[AUTO-JOIN]", "red"),
color("YAHAHAHHAHAH", "white")
);
ZimBotInc.query({
json: [
"action",
"invite",
`${budy.replace("https://chat.whatsapp.com/", "")}`,
],
});
}
*/
if (isCmd && msgFilter.isFiltered(from) && !isGroup) {
console.log(color('[SPAM]', 'red'), color(time, 'yellow'), color(`${command} [${args.length}]`), 'from', color(pushname))
return reply('ใสแด แดแดแดษชแดษดแด ๐ป sแดแดแดษดแด
s/แดแดแดแดแดษดแด
ใ')}
const createSerial = (size) => {
return crypto.randomBytes(size).toString('hex').slice(0, size)
}
var elit = '*Oสแด
ษดแดสส แดแด
แด แดษดแดแดสแด*'
if (isPremium)
{
elit = '*Aแด
แด แดษดแดแดสแด แดสแด*'
}
if (isCreator)
{
elit = '*Aแด
แดษชษด ษขแดแดแด*'
}
async function sendButLoc(from) {
reqXp = 5000 * (Math.pow(2, getLevelingLevel(sender)) - 1)
var button = [
{ urlButton: { displayText: `SCRIPT`, url : `${wame}` } },
{ quickReplyButton: { displayText: `INVENTORI`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `OWNER`, id: `${prefix}owner` } }
]
bufu = await getBuffer(picak+'RPG GAMES')
var DADYDR = `
โโโโใ *_โแดสแดแดแดโ_* ใ
โ *Nแดแดแด:* ${pushname}
โ *Rแดษดแด:* ${role}
โ *Sแดแดแดแด๊ฑ:* ${elit}
โ *Mแดษดแดส:* $${(getBalance(sender, balance))}
โ *Xแด:* ${getLevelingXp(sender)}/${reqXp}
โ *Lแดแด แดส:* ${getLevelingLevel(sender)}
โโโโโโโโโโโโโ
โโโโใ *_โษชษด๊ฐแดโ_* ใ
โ *Mแดษดแดส:* $${(getBalance(sender, balance))}
โ *Gแดสแด
:* ${getEmas(sender)}
โ *Iสแดษด:* ${getBesi(sender)}
โ *Fษช๊ฑส:* ${getFish(sender)}
โ *Dษชแดแดแดษดแด
:* ${getDm(sender)}
โโโโโโโโโโโโโ
โโโโใ *_โแดแดษดแด สแดษขโ_* ใ
โ ${prefix}joinrpg
โ ${prefix}quest
โ ${prefix}mining
โ ${prefix}mancing
โ ${prefix}luckyday
โ ${prefix}luckytime
โ ${prefix}adventure
โ ${prefix}inventori
โโโโโโโโโโโโโ
โโโโใ *_โFแดสแด สแดษขโ_* ใ
โ ${prefix}killslime
โ ${prefix}killgoblin
โ ${prefix}killdevil
โ ${prefix}killbehemoth
โ ${prefix}killdemon
โ ${prefix}killdemonking
โโโโโโโโโโโโโ
โโโโใ *_โTสแดแด
แด สแดษขโ_* ใ
โ ${prefix}sellikan
โ ${prefix}sellbesi
โ ${prefix}sellemas
โ ${prefix}selldiamond
โโโโโโโโโโโโโ
โโโโใ *_แดสแดษดแดs แดแด_* ใ
โสแดแดส แดสแดแด
ษชแด๊ฑ
โโโโใ *_แดขษชแด สแดแด ษชษดแด_* ใ
`
let message = await prepareWAMessageMedia({ image: bufu, jpegThumbnail:bufu }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: DADYDR,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButJoin(from, query) {
reqXp = 5000 * (Math.pow(2, getLevelingLevel(sender)) - 1)
_petualang.push(sender)
fs.writeFileSync('./database/inventori.json', JSON.stringify(_petualang))
addInventori(sender)
addLevelingId(sender)
var name = args[0]
var serialUser = createSerial(14)
reqXp = 5000 * (Math.pow(2, getLevelingLevel(sender)) - 1)
bufut = await getBuffer(picak+'JOIN RPG')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Rpg Menu`, id: `${prefix}rpgmenu` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `
โฒ *_Sแดแดแดแด๊ฑ๊ฑ Jแดษชษด สแดษข_* โณ
โแดสแด๊ฐษชสแด โ
โ *Nแดแดแด :* ${name}
โ *Lแดแด แดส :* ${getLevelingLevel(sender)}
โ *Sแดแดแดแด๊ฑ :* ${elit}
โ *Xแด:* ${getLevelingXp(sender)}/${reqXp}
โฒ *_สแดษข ษขแดแดแด_* โณ`
let message = await prepareWAMessageMedia({ image: bufut, jpegThumbnail:bufut }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButslime(from) {
ez = Math.ceil(Math.random() * 400)
addLevelingXp(sender, ez)
a = randomNomor(55)
b = randomNomor(400)
c = randomNomor(80)
d = randomNomor(3)
addLevelingXp(sender, ez)
addBalance(sender, b, balance)
addEmas(sender, a)
addBesi(sender, c)
addDm(sender, d)
bufutI = await getBuffer(picak+'KILL SLIME')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission to kill Slime*\n\n๐ *Reward for killing Slime*\n โ *Money:* $${b}\n โ *Iron:* ${c}\n โ *Gold:* ${a}\n โ *Diamond:* ${d}\n\n*Thank you for carrying out this mission*`
let message = await prepareWAMessageMedia({ image: bufutI, jpegThumbnail:bufutI }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButgoblin(from) {
ez = Math.ceil(Math.random() * 500)
addLevelingXp(sender, ez)
a = randomNomor(65)
b = randomNomor(500)
c = randomNomor(90)
d = randomNomor(5)
addLevelingXp(sender, ez)
addBalance(sender, b, balance)
addEmas(sender, a)
addBesi(sender, c)
addDm(sender, d)
bufo = await getBuffer(picak+'KILL GLOBIN')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission To kill Goblin*\n\n๐ *Reward for killing Goblin*\n โ *Money:* $${b}\n โ *Iron:* ${c}\n โ *Gold:* ${a}\n โ *Diamond:* ${d}\n\n*Thank you for carrying out this misssion*`
let message = await prepareWAMessageMedia({ image: bufo, jpegThumbnail:bufo }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButdevil(from) {
ez = Math.ceil(Math.random() * 600)
addLevelingXp(sender, ez)
a = randomNomor(70)
b = randomNomor(600)
c = randomNomor(95)
d = randomNomor(6)
addLevelingXp(sender, ez)
addBalance(sender, b, balance)
addEmas(sender, a)
addBesi(sender, c)
addDm(sender, d)
bufas = await getBuffer(picak+'KILL DEVIL')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission to kill ๐๐ฒ๐๐ถ๐น๏ธ*\n\n๐ *Reward for killing Devil*\n โ *Money:* $${b}\n โ *Iron:* ${c}\n โ *Gold:* ${a}\n โ *Diamond:* ${d}\n\n*Thank you for carrying out this mission*`
let message = await prepareWAMessageMedia({ image: bufas, jpegThumbnail:bufas }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButbehemoth(from) {
ez = Math.ceil(Math.random() * 700)
addLevelingXp(sender, ez)
a = randomNomor(75)
b = randomNomor(600)
c = randomNomor(100)
d = randomNomor(7)
addLevelingXp(sender, ez)
addBalance(sender, b, balance)
addEmas(sender, a)
addBesi(sender, c)
addDm(sender, d)
batai = await getBuffer(picak+'KILL BEHEMOTH')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission to kill Behemoth*\n\n๐ *Reward for kiling Behemoth*\n โ *Money:* $${b}\n โ *Iron:* ${c}\n โ *Gold:* ${a}\n โ *Diamond:* ${d}\n\n*Thank you for carrying out this mission*`
let message = await prepareWAMessageMedia({ image: batai, jpegThumbnail: batai }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `${global.botname}`,
mentions: [sender],
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButdemon(from) {
ez = Math.ceil(Math.random() * 850)
addLevelingXp(sender, ez)
a = randomNomor(90)
b = randomNomor(900)
c = randomNomor(120)
d = randomNomor(10)
addLevelingXp(sender, ez)
addBalance(sender, b, balance)
addEmas(sender, a)
addBesi(sender, c)
addDm(sender, d)
bhuu = await getBuffer(picak+'KILL DEMON')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission to kill Demon*\n๐ *Demon Kill Reward*\n โ *Money:* $${b}\n โ *Iron:* ${c}\n โ *Gold*: ${a}\n โ *Diamond:* ${d}\n\n*Thank You for Carrying Out This Mission*`
let message = await prepareWAMessageMedia({ image: bhuu, jpegThumbnail: bhuu }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `${global.botname}`,
mentions: [sender],
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
async function sendButdemonking(from) {
ez = Math.ceil(Math.random() * 1000)
addLevelingXp(sender, ez)
addLevelingXp(sender, ez)
addBalance(sender, 1999, balance)
addEmas(sender, 99)
addBesi(sender, 99)
addDm(sender, 99)
bhuud = await getBuffer(picak+'KILL DEMONKING ')
var button = [
{ urlButton: { displayText: `Script`, url : `${wame}` } },
{ quickReplyButton: { displayText: `Inventori`, id: `${prefix}inventori` } },
{ quickReplyButton: { displayText: `Owner`, id: `${prefix}owner` } }
]
var hg = `*Mission to kill DemonKing*\n\n๐ *DemonKing Kill Reward*\n โ *Money* : $${b}\n โ *Iron :* ${c}\n โ *Gold :* ${a}\n โ *Diamond :* ${d}\n\n*Thank You for Carrying Out This Mission*`
let message = await prepareWAMessageMedia({ image: bhuud, jpegThumbnail:bhuud }, { upload: ZimBotInc.waUploadToServer })
const template = generateWAMessageFromContent(m.chat, proto.Message.fromObject({
templateMessage: {
hydratedTemplate: {
imageMessage: message.imageMessage,
hydratedContentText: hg,
hydratedFooterText: `สแดษข ษขแดแดแด สส แดขษชแดสแดแด`,
hydratedButtons: [{
"urlButton": {
"displayText": "SUBSCRIBE",
"url": "https://www.youtube.com/c/DRIPSOFC"
}
}, {
quickReplyButton: {
displayText: 'INVENTORY',
id: `${prefix}inventori`
}},{
quickReplyButton: {
displayText: 'OWNER',
id: `${prefix}owner`
}
}
]
}
}
}), { userJid: m.chat })
ZimBotInc.relayMessage(m.chat, template.message, { messageId: template.key.id })
.catch ((err) => reply(err))
}
const emote = (satu, dua) => {
try{
const { EmojiAPI } = require("emoji-api");
const emoji = new EmojiAPI();
emoji.get(satu)
.then(emoji => {
const buttons = [{buttonId: "y", buttonText: {displayText:satu}, type: 1}]
const buttonMessage = {image: {url: emoji.images[dua].url},caption: "ZIM BOT V4",footerText: 'Loading...',buttons: buttons,headerType: 4}
ZimBotInc.sendMessage(from, buttonMessage, {quoted:m})
})
} catch (e) {
reply("Emoji error, please enter another emojinNOTE : Just enter 1 emoji")
}
}
//----ANTILINK AND CHATBOT-----\\
//chatbot is encrypted sorry
var _0x33fa3e=_0x465d;function _0x2a31(){var _0x124451=['reply','1109740LfSEyY','includes','9059424ATMYLh','702DCvREW','3129360vqgfpx','sender','@s.whatsapp.net','http://api.brainshop.ai/get?bid=167831&key=BFghpAKanUPXcLWQ&uid=','error','9eHTAtD','chatbot','catch','&msg=','1931044WXDcdy','data','split','18074ZBFvdT','user','GET','27825912kQipLx','62352dAoPvn','settings','http://api.brainshop.ai/get?bid=167831&key=BFghpAKanUPXcLWQ&uid=ZimBotinc.user.id&msg='];_0x2a31=function(){return _0x124451;};return _0x2a31();}function _0x465d(_0x46eeb2,_0x5f0900){var _0x2a3178=_0x2a31();return _0x465d=function(_0x465d22,_0x141be9){_0x465d22=_0x465d22-0x110;var _0x9b342b=_0x2a3178[_0x465d22];return _0x9b342b;},_0x465d(_0x46eeb2,_0x5f0900);}(function(_0x3277b6,_0x4246a7){var _0x1e4f2f=_0x465d,_0x355551=_0x3277b6();while(!![]){try{var _0x22af3f=-parseInt(_0x1e4f2f(0x11c))/0x1+parseInt(_0x1e4f2f(0x115))/0x2+parseInt(_0x1e4f2f(0x111))/0x3*(parseInt(_0x1e4f2f(0x120))/0x4)+parseInt(_0x1e4f2f(0x124))/0x5+-parseInt(_0x1e4f2f(0x123))/0x6*(-parseInt(_0x1e4f2f(0x118))/0x7)+parseInt(_0x1e4f2f(0x122))/0x8+-parseInt(_0x1e4f2f(0x11b))/0x9;if(_0x22af3f===_0x4246a7)break;else _0x355551['push'](_0x355551['shift']());}catch(_0x32822d){_0x355551['push'](_0x355551['shift']());}}}(_0x2a31,0xabe65));if(db[_0x33fa3e(0x11d)][botNumber][_0x33fa3e(0x112)]){if(m[_0x33fa3e(0x125)][_0x33fa3e(0x121)](_0x33fa3e(0x126))){var mhata=''+command;sehcalaz=ZimBotInc[_0x33fa3e(0x119)]['id'][_0x33fa3e(0x117)]('@')[0x0];var duzvi=encodeURI(mhata);const bhabhi={'method':_0x33fa3e(0x11a),'url':_0x33fa3e(0x11e)+command};await axios['get'](_0x33fa3e(0x127)+sehcalaz+_0x33fa3e(0x114)+duzvi)['then'](function(_0x55e8cd){var _0x4963f0=_0x33fa3e,_0x207a24='';_0x207a24=_0x55e8cd[_0x4963f0(0x116)]['cnt'],m[_0x4963f0(0x11f)](_0x207a24);})[_0x33fa3e(0x113)](function(_0x4cac14){var _0x12b308=_0x33fa3e;console[_0x12b308(0x110)](_0x4cac14);});}}
if (db.chats[m.chat].antilink) {
if (budy.includes('https://chat.whatsapp.com/')) {
if (!m.key.fromMe) {
reply('[ ๐ญ๐๐ ๐๐ข๐ง ๐๐ก๐ง๐๐๐๐ก๐ ]\n๐๐ถ๐ป๐ธ ๐ป๐ผ๐ ๐ฎ๐น๐น๐ผ๐๐ฒ๐ฑ ๐ต๐ฒ๐ฟ๐ฒ, ๐ข๐๐?..,\n๐๐ผ๐ผ๐ฑ ๐ฏ๐๐ฒ ๐๐บ ๐ธ๐ถ๐ฐ๐ธ๐ถ๐ป๐ด ๐๐ฟ ๐ฎ๐๐ ๐ป๐ผ๐๐๐ป')
let sianj = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [sianj], 'remove').then((res) => reply(jsonformat(res))).catch((err) => reply(jsonformat(err)))
}
}
}
if (db.chats[m.chat].wame) {
if (budy.match(`wa.me/`)) {
reply(`ใ ๐ญ๐๐ ๐๐ข๐ง ๐๐ก๐ง๐๐๐๐ก๐ ใ\n\n๐ฌ๐ผ๐ ๐ต๐ฎ๐๐ฒ ๐๐ฒ๐ป๐ฑ ๐๐ฎ.๐บ๐ฒ ๐น๐ถ๐ป๐ธ, ๐ป๐ผ ๐๐ถ๐บ๐ฒ ๐๐ผ ๐๐ฎ๐๐๐ฒ ๐๐ฎ ๐ผ๐๐!`)
if (!isBotAdmins) return reply(`๐ก๐ช๐ฎ ๐๐ฐ๐ต ๐ฎ๐ถ๐ด๐ต ๐ฃ๐ฆ ๐ข๐ฅ๐ฎ๐ช๐ฏ ๐ง๐ช๐ณ๐ด๐ต๐`)
let gclink = (`https://wa.me/`)
let isLinkThisGc = new RegExp(gclink, 'i')
let isgclink = isLinkThisGc.test(m.text)
if (isgclink) return reply(`๐๐ ๐ ๐ฆ๐ข๐ฉ ๐ช๐ต ๐ฅ๐ช๐ฅ๐ฏ๐ต ๐ฉ๐ข๐ฑ๐ฑ๐ฆ๐ฏ, ๐ฃ๐ฆ๐ค๐ข๐ถ๐ด๐ฆ ๐บ๐ฐ๐ถ ๐ด๐ฆ๐ฏ๐ต ๐ต๐ฉ๐ช๐ด ๐ธ๐ข.๐ฎ๐ฆ ๐ญ๐ช๐ฏ๐ฌ๐บ ๐ฐ๐ฌ๐ข๐บ๐`)
if (isAdmins) return reply(`๐๐ฆ๐ญ๐ญ ๐ฏ๐ฐ๐ฑ ๐บ๐ฐ๐ถ ๐ข๐ฅ๐ฎ๐ช๐ฏ`)
if (isCreator) return reply(`๐๐ฐ๐ฐ๐ฐ๐ฉ ๐ด๐ฉ๐ช๐ต๐ฉ ๐ด๐ฐ๐ณ๐ณ๐บ ๐บ๐ถ ๐ข๐ณ๐ฆ ๐ต๐ฉ๐ฆ ๐ฐ๐ธ๐ฏ๐ฆ๐ณ ๐ญ๐ถ๐ค๐ฌ๐บ ๐บ๐ฐ๐ถ`)
ZimBotInc.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
}
}
if (db.chats[m.chat].antiinstagram) {
if (budy.includes("https://www.instagram.com/")){
if (!isBotAdmins) return
zimbotv3 = `*โโโDETECTEDโโโ*\n\n*you are admn okay*`
if (isAdmins) return reply(zimbotv3)
if (m.key.fromMe) return reply(zimbotv3)
if (isCreator) return reply(zimbotv3)
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no ig links here okay, now get out* `, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
if (db.chats[m.chat].antisticker) {
let isSticker = m.mtype
if(isSticker === "stickerMessage"){
if (!m.key.fromMe) {
if (isAdmins) return reply(`*you are admin lucky you dont send stickers here*`)
if (isCreator) return reply(`*๐๐ฐ๐ฐ๐ฐ๐ฉ ๐ด๐ฉ๐ช๐ต๐ฉ ๐ด๐ฐ๐ณ๐ณ๐บ ๐บ๐ถ ๐ข๐ณ๐ฆ ๐ต๐ฉ๐ฆ ๐ฐ๐ธ๐ฏ๐ฆ๐ณ ๐ญ๐ถ๐ค๐ฌ๐บ ๐บ๐ฐ๐ถ*`)
reply('*ANTI STICKER*\n\n*NO STICKERS ALLOWED HERE OKAY GOODBYE*')
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no stickers here okay, now get out* `, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
}
if (db.chats[m.chat].antivn) {
let isAudio = m.mtype
if(isAudio === "audioMessage"){
if (!m.key.fromMe) {
if (isAdmins) return reply(`*you are admin lucky you dont send voice note here*`)
if (isCreator) return reply(`*๐๐ฐ๐ฐ๐ฐ๐ฉ ๐ด๐ฉ๐ช๐ต๐ฉ ๐ด๐ฐ๐ณ๐ณ๐บ ๐บ๐ถ ๐ข๐ณ๐ฆ ๐ต๐ฉ๐ฆ ๐ฐ๐ธ๐ฏ๐ฆ๐ณ ๐ญ๐ถ๐ค๐ฌ๐บ ๐บ๐ฐ๐ถ*`)
reply('*ANTI VOICE NOTE*\n\n*NO VOICE ALLOWED HERE OKAY GOODBYE*')
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no voice note here okay, now get out* `, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
}
if (db.chats[m.chat].antivideo) {
let isVideo = m.mtype
if(isVideo === "videoMessage"){
if (!m.key.fromMe) {
if (isAdmins) return reply(`*you are admin lucky you dont send videos here*`)
if (isCreator) return reply(`*๐๐ฐ๐ฐ๐ฐ๐ฉ ๐ด๐ฉ๐ช๐ต๐ฉ ๐ด๐ฐ๐ณ๐ณ๐บ ๐บ๐ถ ๐ข๐ณ๐ฆ ๐ต๐ฉ๐ฆ ๐ฐ๐ธ๐ฏ๐ฆ๐ณ ๐ญ๐ถ๐ค๐ฌ๐บ ๐บ๐ฐ๐ถ*`)
reply('*ANTI VIDEO*\n\n*NO VIDEOS ALLOWED HERE OKAY GOODBYE*')
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no videos here okay, now get out* `, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
}
if (db.chats[m.chat].antiphoto) {
let isPhoto = m.mtype
if(isPhoto === "imageMessage"){
if (!m.key.fromMe) {
if (isAdmins) return reply(`*you are admin lucky you dont send photos here*`)
if (isCreator) return reply(`*๐๐ฐ๐ฐ๐ฐ๐ฉ ๐ด๐ฉ๐ช๐ต๐ฉ ๐ด๐ฐ๐ณ๐ณ๐บ ๐บ๐ถ ๐ข๐ณ๐ฆ ๐ต๐ฉ๐ฆ ๐ฐ๐ธ๐ฏ๐ฆ๐ณ ๐ญ๐ถ๐ค๐ฌ๐บ ๐บ๐ฐ๐ถ*`)
reply('*ANTI PHOTOS*\n\n*NO PHOTOS ALLOWED HERE OKAY GOODBYE*')
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no photos here okay, now get out* `, contextInfo:{mentionedJid:[kice]}}, {quoted:m})
}
}
}
if (db.chats[m.chat].antifb) {
if(budy.includes("https://facebook.com/")){
if (!isBotAdmins) return
zimbotv3 = `*โโโDETECTEDโโโ*\n\n*you are admin okay*`
if (isAdmins) return reply(zimbotv3)
if (m.key.fromMe) return reply(zimbotv3)
if (isCreator) return reply(zimbotv3)
kice = m.sender
await ZimBotInc.groupParticipantsUpdate(m.chat, [kice], 'remove')
ZimBotInc.sendMessage(from, {text:`*โโโDETECTEDโโโ*\n\n@${kice.split("@")[0]} *I said no fb links here okay, now get out*`, contextInfo:{mentionedJid:[kice]}}, {quoted:m})