main #8
1 changed files with 3 additions and 3 deletions
|
@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue