add special to activate meowris
All checks were successful
Build Container / Build Container (push) Successful in 4m25s
All checks were successful
Build Container / Build Container (push) Successful in 4m25s
This commit is contained in:
parent
4817966757
commit
68423c4c49
6 changed files with 120 additions and 16 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue