mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 18:58:13 +01:00
add splash!!
This commit is contained in:
parent
16f8c430a0
commit
44183892bf
1 changed files with 16 additions and 0 deletions
|
@ -23,6 +23,21 @@ var ping = require("ping");
|
||||||
|
|
||||||
const sha384 = modules.hash;
|
const sha384 = modules.hash;
|
||||||
|
|
||||||
|
|
||||||
|
const splash = [
|
||||||
|
"Woke!",
|
||||||
|
"Gay gay homosexaul gay!",
|
||||||
|
"free palistine!",
|
||||||
|
"free software!",
|
||||||
|
"frick capitalism!",
|
||||||
|
"still calling it twitter btw!",
|
||||||
|
"boop!"
|
||||||
|
]
|
||||||
|
|
||||||
|
const random =
|
||||||
|
splash[Math.floor(Math.random() * splash.length)];
|
||||||
|
|
||||||
|
|
||||||
function getJson(str) {
|
function getJson(str) {
|
||||||
try {
|
try {
|
||||||
return JSON.parse(str);
|
return JSON.parse(str);
|
||||||
|
@ -85,6 +100,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
return renderTemplate(res, req, "landing.ejs", {
|
return renderTemplate(res, req, "landing.ejs", {
|
||||||
isOldWindows,
|
isOldWindows,
|
||||||
|
splash
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue