From ea49234ce1307b0533e7ce90106a3f324a88749b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Epu=C3=B1an?= Date: Tue, 18 Jun 2024 21:24:47 -0300 Subject: [PATCH] feat: comestic output improvements (#747) Better output. Test: `huemul bin chile` --- scripts/bin-checker.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/bin-checker.js b/scripts/bin-checker.js index de85ee8b..eb608589 100644 --- a/scripts/bin-checker.js +++ b/scripts/bin-checker.js @@ -8,6 +8,7 @@ // None // // Commands: +// hubot bin help // hubot bin // // Author: @@ -65,16 +66,16 @@ module.exports = function (robot) { const cards = Array.from(cardsContainer).map(card => $(card).text().replace(/\n/g, ' ').trim()) if (cards.length) { - msg.send(`Encontramos ${cards.length}💳 para ${bankName}\n${cards}`) + msg.send(`Encontramos *${cards.length}* 💳 para *${bankName}*:\n${cards.join(',').replace(/,/g, '\n').split()}`) } else { - msg.send(`No encontramos tarjetas para ${bankName}`) + msg.send(`No encontramos tarjetas para *${bankName}*`) } } else { msg.send(':facepalm: Error: ', error) } }) } else { - msg.send('🏦 Banco no encontrado. Deja de inventar o haz un PR.') + msg.send('Banco 🏦 no encontrado. Deja de inventar o haz un PR.') } }) }