generated from nhcarrigan/template
feat: display landing page (#6)
Reviewed-on: https://codeberg.org/nhcarrigan/tingle-bot/pulls/6 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
parent
dac4c6f008
commit
e1851656fe
@ -28,7 +28,43 @@ export const instantiateServer = async(bot: Client) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
server.get("/", (_request, response) => {
|
server.get("/", (_request, response) => {
|
||||||
response.send("Health check~!");
|
response.header("Content-Type", "text/html");
|
||||||
|
response.send(`<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Tingle Bot</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="description" content="Custom bot for my friend Ruu's Zelda-themed RP server" />
|
||||||
|
<script src="https://cdn.nhcarrigan.com/headers/index.js" async defer></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<h1>Tingle Bot</h1>
|
||||||
|
<section>
|
||||||
|
<p>Custom bot for my friend Ruu's Zelda-themed RP server.</p>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h2>Links</h2>
|
||||||
|
<p>
|
||||||
|
<a href="https://codeberg.org/nhcarrigan/tingle-bot">
|
||||||
|
<i class="fa-solid fa-code"></i> Source Code
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://docs.nhcarrigan.com/">
|
||||||
|
<i class="fa-solid fa-book"></i> Documentation
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://chat.nhcarrigan.com">
|
||||||
|
<i class="fa-solid fa-circle-info"></i> Support
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>`);
|
||||||
});
|
});
|
||||||
|
|
||||||
server.listen({ port: 4443 }, (error) => {
|
server.listen({ port: 4443 }, (error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user