From 4af4767e8cd0364f3e50f61c39c786e2dc81d655 Mon Sep 17 00:00:00 2001 From: Lluis Date: Sun, 12 May 2024 01:23:10 +0200 Subject: [PATCH] rename info command to reto --- handlers/tempsDeFlors.js | 2 +- lib/inputParser.js | 2 +- views/pages/comandos.ejs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/tempsDeFlors.js b/handlers/tempsDeFlors.js index 64e34d5..13c0581 100644 --- a/handlers/tempsDeFlors.js +++ b/handlers/tempsDeFlors.js @@ -23,7 +23,7 @@ class TempsDeFlors { async getTotalSpot (target, bot, roomId) { const spots = await TempsDeFlorsService.getTFSpots(roomId) const count = spots.filter((s) => s.visited).length - bot.say(target, `${config.externalUrl} (Vistos ${count}/${spots.length} puntos)`) + bot.say(target, `Reto: ${config.externalUrl} (Vistos ${count}/${spots.length} puntos)`) } async setVisited (target, text, bot, roomId, isVisited) { diff --git a/lib/inputParser.js b/lib/inputParser.js index e66f49f..5dc8192 100644 --- a/lib/inputParser.js +++ b/lib/inputParser.js @@ -68,7 +68,7 @@ class InputParser { } isAskingForTFSpotsCount (text) { - return text.toLowerCase().startsWith('!info') + return text.toLowerCase().startsWith('!reto') } isAskingForTFMap (text) { diff --git a/views/pages/comandos.ejs b/views/pages/comandos.ejs index 13f2176..6961d41 100644 --- a/views/pages/comandos.ejs +++ b/views/pages/comandos.ejs @@ -45,7 +45,7 @@ Ver si hay un punto activo para hacer !foto. - !info + !reto Ver web con el listado de puntos, galeria de foto, comandos y rutas