add special to activate meowris
All checks were successful
Build Container / Build Container (push) Successful in 4m25s

This commit is contained in:
kritzl 2026-09-29 16:33:45 +02:00
commit 68423c4c49
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
6 changed files with 120 additions and 16 deletions

View file

@ -24,7 +24,9 @@ const responses =
? (await import("./chatDict_de")).default
: lang === "uwu"
? (await import("./chatDict_uwu")).default
: (await import("./chatDict_en")).default
: lang === "meow"
? (await import("./chatDict_meow")).default
: (await import("./chatDict_en")).default
const sortedResponses = responses.sort(
(a, b) => b.priority - a.priority)
@ -343,6 +345,18 @@ function getResponse(message: string) {
})
}
if (response.special === "meow") {
setTimeout(() => {
window.location.href = "/meow"
}, 1000)
matchingResponses.push({
message: response.response,
priority: response.priority,
special: true,
})
}
if (response.special === "logout") {
if (auth.authenticated) {
setTimeout(() => {