This commit is contained in:
nelle 2024-09-16 00:36:25 -06:00
parent a794d1d074
commit 30d51e4cf6

View file

@ -51,18 +51,18 @@ fun Application.configureRouting(client: HttpClient) {
if (call.receiveText() == Config().superSecret) { if (call.receiveText() == Config().superSecret) {
call.response.status(HttpStatusCode(201, "Meow Posted")) call.response.status(HttpStatusCode(201, "Meow Posted"))
makePost(client, getMeow(), Config().instanceDomain) makePost(client, getMeow(), Config().instanceDomain)
logger.debug { "meowed with bypass" } logger.info { "meowed with bypass" }
} else { } else {
if (meowTimedOut) { if (meowTimedOut) {
call.response.status(HttpStatusCode(423, "Timed Out")) call.response.status(HttpStatusCode(423, "Timed Out"))
call.respondText("still Sleeping...") call.respondText("still Sleeping...")
logger.debug { "failed meow" } logger.info { "failed meow" }
} else { } else {
call.response.status(HttpStatusCode(201, "Meow Posted")) call.response.status(HttpStatusCode(201, "Meow Posted"))
makePost(client, getMeow(), Config().instanceDomain) makePost(client, getMeow(), Config().instanceDomain)
meowTimer() meowTimer()
call.respondText("meow sent!") call.respondText("meow sent!")
logger.debug { "meowed" } logger.info { "meowed" }
} }
} }
} }