diff --git a/app.js b/app.js index 36ab43a..cfd2960 100644 --- a/app.js +++ b/app.js @@ -68,7 +68,7 @@ mongoose.connect(config.database).then(() => { const listener = app.listen(process.env.PORT, ()=> { console.log('Listening on port ', + listener.address().port) - app.get('/', (req, res) => res.send('Live!')) + app.get('/', (req, res) => res.redirect('/listado')) }) }) }) diff --git a/handlers/tempsDeFlors.js b/handlers/tempsDeFlors.js index f79c354..513edec 100644 --- a/handlers/tempsDeFlors.js +++ b/handlers/tempsDeFlors.js @@ -23,13 +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}/listado (Vistos ${count}/${spots.length} puntos)`) - } - - async getTotalSpot (target, bot, roomId) { - const spots = await TempsDeFlorsService.getTFSpots(roomId) - const count = spots.filter((s) => s.visited).length - bot.say(target, `${config.externalUrl}/listado (Vistos ${count}/${spots.length} puntos)`) + bot.say(target, `${config.externalUrl} (Vistos ${count}/${spots.length} puntos)`) } async setVisited (target, text, bot, roomId, isVisited) {