Skip to content

Commit

Permalink
Merge pull request FantoX001#36 from jayjay-ops/patch-2
Browse files Browse the repository at this point in the history
Admins tag Core.js
  • Loading branch information
Shubha Pratim Biswas authored Nov 24, 2022
2 parents 2797552 + 4409d8a commit b29f961
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2445,6 +2445,23 @@ if (isBanChat) return reply(mess.bangc)
}
break


case'admin': {
if (isBan) return reply(mess.banned)
if (isBanChat) return reply(mess.bangc)
if (!m.isGroup) return replay(mess.grouponly)
if (!text) return replay(`*Please quote or write a meaningful message to tag admins to*`)
let teks = `*「 Tag Admins 」*
*Message : ${text}*\n\n`
for (let mem of groupAdmins) {
teks += `🤴 @${mem.split('@')[0]}\n`
}
Miku.sendMessage(m.chat, { text: teks, mentions: groupAdmins}, { quoted: m })
}
break


case 'hidetag': {
if (isBan) return reply(mess.banned)
if (isBanChat) return reply(mess.bangc)
Expand Down Expand Up @@ -4730,7 +4747,7 @@ Here's the list of my Commands.
*━━━〈 🎆 Core 🎆 〉━━━*
speak, miku, stalk, profile, help, delete, deleteall, listgc, listpc, welcome, support, repo, script
speak, miku, stalk, profile, help, delete, deleteall, listgc, listpc, welcome, support, repo, script, admin
*━━━〈 🎀 Owner 🎀 〉━━━*
Expand Down

0 comments on commit b29f961

Please sign in to comment.