owner-setbotname.js 359 B

12345678910111213141516
  1. let handler = async (m, { conn, text, usedPrefix, command }) => {
  2. if (!text) throw `Y EL TEXTO?`
  3. try {
  4. await conn.updateProfileName(text)
  5. m.reply('LISTO!')
  6. } catch (e) {
  7. console.log(e)
  8. throw `Error`
  9. }}
  10. handler.help = ['setbotname <teks>']
  11. handler.tags = ['owner']
  12. handler.command = /^(setbotname|cambianombre)$/i
  13. handler.owner = true
  14. export default handler