case 'gerarnick':
try {//By: π§ πππππ πππ ππππππ π§
if (!q) return reply(`*Exemplo:* ${prefix}${command} Zero Two`)
const response = await fetch(`${zerosite}/api/fazernick?nome=${encodeURIComponent(q)}&apikey=${API_KEY_ZEROTWO}`)
if (!response.ok) throw new Error('Erro ao acessar a API.')
const nicks = await response.json()
if (!Array.isArray(nicks) || nicks.length === 0) {
return reply('π _Nenhum nickname gerado._')
}
let formattedNicks = 'β¨ *Nicknames Gerados:* β¨\n\n'
nicks.forEach((nick, index) => {
formattedNicks += `π ${index + 1}. *${nick}*\n`
})
formattedNicks += '\nπ _Escolha o seu favorito!_'
reply(formattedNicks)
} catch (e) {
console.log(e)
return reply("π¨ Erro ao gerar nicknames.")
}
break