main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
Showing only changes of commit 30d51e4cf6 - Show all commits

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" }
}
}
}