This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
texts.js
39 lines (39 loc) · 1.52 KB
/
texts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = (r) => ({
en_us: {
join: (a, b) => `${a} has joined.${b && `<div style="border: "`}`,
leave: (a) => `${a} has ${Math.random() < 0.05 ? "right" : "left"}. T`,
kick: (a, b) => `${a} was hit by ${b}'s rubber boot!`,
ban: (a, b, c, d) => `${a} was hit by ${b}'s ${c}-pound banhammer: ${d}`,
join_self: (a, b, c) =>
`Welcome to the ${
process.env.SERVER_NAME || "local"
} server, ${a} (${b}) - ${c}`,
help: () =>
`For help, type or click <button onclick="sendCommand('/help welcome')">/help welcome</button>.`,
chat: (a, b) => `<${a}> ${b}`,
action: (a, b) => `* ${a} ${b}`,
nick: (a, b) => `${a} has applied name ${b}.`,
truly: {
you: () => `Yes, you are yourself.`,
kicky: (a) => `You were told the truth by ${a}`,
kick: (a, b) => `${a} was told the truth about ${b}.`,
},
nick_self: (a) => `Name ${a} applied successfully.`,
join_extra: () =>
((a) => a[Math.floor(Math.random() * a.length)])([
"In the government",
`Abusing admin since ${new Date().getFullYear() + 1}`,
]),
message: (a, b, c, d, e, f = "") =>
`${f.toString().padStart(12, " ").slice(-12).replace(/ /g, " ")} ${e
.toString()
.padStart(6, " ")
.slice(-6)
.replace(/ /g, " ")}: ${r.pf[c] ? r.pf[c] : "(" + c + ") "}${a
.toString()
.padStart(2, "0")}:${b.toString().padStart(2, "0")}:${new Date()
.getSeconds()
.toString()
.padStart(2, "0")} | ${d}`,
},
})