diff --git a/src/index.ts b/src/index.ts index b3128df..3ff6714 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,7 @@ app.get("/", async (req, res) => { }).from(personTable) .leftJoin(pointsTable, eq(personTable.personId, pointsTable.personId)) .groupBy(personTable.personId) + .orderBy(sql`rand()`); ejs.renderFile('src/templates/index.ejs', { people: people }, function (err, str) { if (err) { @@ -95,7 +96,7 @@ app.get("/gamble/:id", async (req, res) => { if (person.gambleTime == null) { sendError(res, 423, "Gamble není dostupný"); } else { - sendError(res, 423, "Gamble nelze, gej nebudeš až v " + new Date(getNextGambleTime(person.gambleTime).getTime()).toLocaleString('cs', { + sendError(res, 423, "Na prolomení časoprostoru kvůli závislosti na gamblingu přijde čas až v " + new Date(getNextGambleTime(person.gambleTime).getTime()).toLocaleString('cs', { hour: "2-digit", minute: "2-digit", timeZone: "Europe/Prague" @@ -142,7 +143,7 @@ app.post("/gamble/:id", upload.none(), async (req, res) => { } if (person.secret != req.body['secret']) { - sendError(res, 423, "Nesprávé heslo. Also tvoje máma je gej."); + sendError(res, 423, "Heslo ti zjevně zapadlo do bariéry"); return; } diff --git a/src/templates/index.ejs b/src/templates/index.ejs index 734af37..f182e51 100644 --- a/src/templates/index.ejs +++ b/src/templates/index.ejs @@ -5,20 +5,42 @@ + -