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) {
call.response.status(HttpStatusCode(201, "Meow Posted"))
makePost(client, getMeow(), Config().instanceDomain)
logger.debug { "meowed with bypass" }
logger.info { "meowed with bypass" }
} else {
if (meowTimedOut) {
call.response.status(HttpStatusCode(423, "Timed Out"))
call.respondText("still Sleeping...")
logger.debug { "failed meow" }
logger.info { "failed meow" }
} else {
call.response.status(HttpStatusCode(201, "Meow Posted"))
makePost(client, getMeow(), Config().instanceDomain)
meowTimer()
call.respondText("meow sent!")
logger.debug { "meowed" }
logger.info { "meowed" }
}
}
}