| 12345678910111213141516171819202122232425262728 |
- let handler = async (m, { conn, args, usedPrefix, command }) => {
- const pp = await conn.profilePictureUrl(m.chat, 'image').catch(_ => null) || './src/grupos.jpg'
- let isClose = { // Switch Case Like :v
- 'open': 'not_announcement',
- 'close': 'announcement',
- 'abierto': 'not_announcement',
- 'cerrado': 'announcement',
- 'abrir': 'not_announcement',
- 'cerrar': 'announcement',
- }[(args[0] || '')]
- if (isClose === undefined)
- throw `*โ ๏ธ ACCION MAL USADA*\n\n*โข Usar ejemplo:*\n${usedPrefix + command} abrir\n${usedPrefix + command} cerrar`.trim()
- await conn.groupSettingUpdate(m.chat, isClose)
-
- if (isClose === 'not_announcement'){
- m.reply(`๐ข ๐๐ผ ๐๐๐๐ฟ๐๐ ๐๐๐พ๐๐๐ฝ๐๐ ๐๐๐ฟ๐๐ ๐๐ ๐๐๐๐๐`)
- }
-
- if (isClose === 'announcement'){
- m.reply(`โ ๏ธ ๐๐๐๐๐ ๐พ๐๐๐๐ผ๐ฟ๐ ๐๐๐๐ ๐๐๐ ๐ผ๐ฟ๐๐๐๐ ๐๐๐๐ฟ๐๐ ๐๐๐พ๐๐๐ฝ๐๐`)
- }}
- handler.help = ['group open / close', 'grupo abrir / cerrar']
- handler.tags = ['group']
- handler.command = /^(group|grupo)$/i
- handler.admin = true
- handler.botAdmin = true
- handler.exp = 200
- export default handler
|