Skip to content

Commit

Permalink
[ Jessi-md 4.8.4 ⏱️ ]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaweeshachamodx authored Jan 28, 2024
1 parent 0146bdc commit 31090a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/group-kick.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Code by Xnuvers007
// https://github.com/Xnuvers007/

import { areJidsSameUser } from '@adiwajshing/baileys'

let handler = async (m, { conn, participants, isAdmin }) => {
if (!isAdmin) {
return m.reply('Perintah ini hanya dapat digunakan oleh admin grup')
return m.reply('*🚫Bot is not an admin of this group.*')
}

let users = m.mentionedJid.filter(u => !areJidsSameUser(u, conn.user.id))
Expand All @@ -16,7 +13,7 @@ let handler = async (m, { conn, participants, isAdmin }) => {
kickedUser.concat(res)
await delay(1 * 1000)
}
m.reply(`Mampos Dikick Kau ${kickedUser.map(v => '@' + v.split('@')[0])}`, null, { mentions: kickedUser })
m.reply(`*🚫 Admin removed you from this group.* ${kickedUser.map(v => '@' + v.split('@')[0])}`, null, { mentions: kickedUser })
}

handler.help = ['kick'].map(v => v + ' @user')
Expand Down

0 comments on commit 31090a9

Please sign in to comment.