| 123456789101112131415161718192021 |
- let Presence = (await import(global.baileys)).default
- let handler = async (m, { conn, args, text }) => {
- const pp = await conn.profilePictureUrl(m.chat, 'image').catch(_ => null) || './src/grupos.jpg'
- if (!text) throw "⚠️ Ingresar el texto para el grupo"
- try {
- let text = args.join` `
- if(!args || !args[0]) {
- } else {
- conn.groupUpdateSubject(m.chat, text)
- }
- m.react("✅️")
- } catch (e) {
- throw "error"
- }}
- handler.help = ['setname'];
- handler.tags = ['group'];
- handler.command = /^(setname|newnombre|nuevonombre)$/i
- handler.group = true
- handler.admin = true
- handler.botAdmin = true
- export default handler
|