forked from elrebelde21/LoliBot-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_antifakes.js
121 lines (102 loc) · 4.61 KB
/
_antifakes.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
let handler = m => m
handler.before = async function (m, {conn, isAdmin, isBotAdmin, isOwner, isROwner} ) {
const fkontak = { "key": { "participants":"0@s.whatsapp.net", "remoteJid": "status@broadcast", "fromMe": false, "id": "Halo" }, "message": { "contactMessage": { "vcard": `BEGIN:VCARD\nVERSION:3.0\nN:Sy;Bot;;;\nFN:y\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD` }}, "participant": "0@s.whatsapp.net"
}
if (!m.isGroup) return !1
let chat = global.db.data.chats[m.chat]
let bot = global.db.data.settings[conn.user.jid] || {}
if (isBotAdmin && chat.antifake && !isAdmin && !isOwner && !isROwner) {
//if (!db.data.chats[m.chat].antifake && m.isGroup) throw 0
let texto = `${ag}*@${m.sender.split`@`[0]}* En este grupo no esta permitido numero fake/arabe sera expulsado...`
if (m.sender.startsWith('91' || '91')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('92' || '92')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('222' || '222')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('93' || '93')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('91' || '91')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('265' || '265')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('61' || '61')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('62' || '62')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('966' || '966')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('229' || '229')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('40' || '40')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('49' || '49')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('20' || '20')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('963' || '963')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('967' || '967')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('234' || '234')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('210' || '210')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
if (m.sender.startsWith('212' || '212')) {
await conn.reply(m.chat, texto, fkontak, m)
let responseb = await conn.groupParticipantsUpdate(m.chat, [m.sender], 'remove')
if (responseb[0].status === "404") return
}
}}
export default handler