From 85b2812f89fae89c59ed3a4929949531f671703d Mon Sep 17 00:00:00 2001 From: Keir Finlow-Bates Date: Sun, 26 Nov 2023 22:25:27 +0200 Subject: [PATCH] motd --- pages/api/motdArray.js | 72 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 pages/api/motdArray.js diff --git a/pages/api/motdArray.js b/pages/api/motdArray.js new file mode 100644 index 0000000..04c2dbb --- /dev/null +++ b/pages/api/motdArray.js @@ -0,0 +1,72 @@ +import axios from 'axios' +import { useRouter } from "next/router" + +export const config = { + api: { + externalResolver: true, + }, +} + +export default async function handler(req, res) { + + const message = [ + "Scrying", + "Divining", + "Crystal gazing", + "Searching", + "Loading", + "Casting a spell", + "Calling for wisdom", + "Using the palantir", + "Working magic...", + "Scrying", + "Divining", + "Crystal gazing", + "Searching", + "Loading", + "Casting a spell", + "Calling for wisdom", + "Using the palantir", + "Working magic...", + "Scrying", + "Divining", + "Crystal gazing", + "Searching", + "Loading", + "Casting a spell", + "Calling for wisdom", + "Using the palantir", + "Working magic...", + "Patience apprentice", + "Invoking a beholder", + "TheOtherGuy's on it", + "There is no spoon", + "Decentraland? Nah", + "SandBox? I'll pass", + "Roblox? No magic", + "Land-rule rules", + "Corwin lives!", + "It's doomed...", + "Lyonesse forever", + "Oh the stricture!", + "Where's my torc?", + "Entropy fj49gfg5", + "Just ask Morgon", + "Clocks strike 13", + "BCG suxs, man", + "Othofizz refreshes", + "Lot 49?", + "Teen Age Riot" + ] + + try { + res.statusCode = 200 + res.json(message) + res.end() + } catch (err) { + // console.log(err) + res.status(404) + res.json({ error: "Something went wrong" }) + res.end() + } +}