Skip to content

Commit

Permalink
rename info command to reto
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed May 11, 2024
1 parent 3f223fa commit 4af4767
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion handlers/tempsDeFlors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/inputParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class InputParser {
}

isAskingForTFSpotsCount (text) {
return text.toLowerCase().startsWith('!info')
return text.toLowerCase().startsWith('!reto')
}

isAskingForTFMap (text) {
Expand Down
2 changes: 1 addition & 1 deletion views/pages/comandos.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<td>Ver si hay un punto activo para hacer !foto.</td>
</tr>
<tr>
<th scope="row">!info</th>
<th scope="row">!reto</th>
<td>Ver web con el listado de puntos, galeria de foto, comandos y rutas</td>
</tr>
</tbody>
Expand Down

0 comments on commit 4af4767

Please sign in to comment.