add easteregg
All checks were successful
Build Container / Build Container (push) Successful in 1m32s
All checks were successful
Build Container / Build Container (push) Successful in 1m32s
This commit is contained in:
parent
9c973c6b91
commit
2ef2b04e49
5 changed files with 134 additions and 6 deletions
|
|
@ -19,8 +19,11 @@ const doorAction = window.doorAction
|
|||
const responses =
|
||||
lang === "de"
|
||||
? (await import("./chatDict_de")).default
|
||||
: (await import("./chatDict_en")).default
|
||||
|
||||
: lang === "uwu"
|
||||
? (await import("./chatDict_uwu")).default
|
||||
: (await import("./chatDict_en")).default
|
||||
const sortedResponses = responses.sort(
|
||||
(a, b) => b.priority - a.priority)
|
||||
|
||||
const templateInjectChat = `
|
||||
<details class="dropdown dropdown-top dropdown-end absolute right-4 bottom-4" id="chat-root">
|
||||
|
|
@ -266,6 +269,18 @@ function getResponse(message: string) {
|
|||
})
|
||||
}
|
||||
|
||||
if (response.special === "uwu") {
|
||||
setTimeout(() => {
|
||||
window.location.href = "/uwu"
|
||||
}, 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