1import { email } from "https://esm.town/v/std/email?v=11";
2import { fetch } from "https://esm.town/v/std/fetch";
3
4export default async () => {
9 let reason: string;
10 try {
11 const res = await fetch(URL);
12 if (res.status !== 200) {
13 reason = `(status code: ${res.status})`;
15 }
16 } catch (e) {
17 reason = `couldn't fetch: ${e}`;
18 ok = false;
19 }
142const app = new Hono();
143app.get("/", Time_Blindness_Loud_Calendar_via_iOS_shortcuts);
144export default app.fetch;
15 }),
16 );
17 const dataReq = await fetch(`https://api.pinata.cloud/pinning/pinFileToIPFS`, {
18 method: "POST",
19 headers: {
27 console.log("Making pin list request");
28
29 const req = await fetch(
30 "https://api.pinata.cloud/data/pinList?metadata[keyvalues]={\"level\":{\"value\":\"200\",\"op\":\"eq\"}}",
31 {
35 document.getElementById("message").style.display = "none";
36 document.getElementById("close-btn").style.display = "flex";
37 await fetchImage(id);
38 };
39
85 });
86 };
87 let resp = await fetch("https://webcams.nyctmc.org/cameras/graphql", {
88 "headers": {
89 "content-type": "application/json",
190 async (c) =>
191 new Response(
192 (await fetch(
193 "https://gist.githubusercontent.com/maxmcd/fdbc8197e877ca052a55982cb85f14c9/raw/0b1191bdf1f5e8c8cc2b7deab2a1f934ffc4dc14/nyc.json",
194 )).body,
283 });
284});
285export default app.fetch;
62 try {
63 await sleepRand(15);
64 const response = await fetch(NOAA_URL_TKPK, {
65 headers: { "User-Agent": "https://www.val.town/v/kingishb/blackLobster" },
66 });
9 let reason: string;
10 try {
11 const res = await fetch(URL, { redirect: "follow" });
12 if (res.status !== 200) {
13 reason = `(status code: ${res.status})`;
15 }
16 } catch (e) {
17 reason = `couldn't fetch: ${e}`;
18 ok = false;
19 }
29 app.all("*", async (c) => {
30 const { path } = c.req;
31 return await fetch(`https://api.val.town${path}`, {
32 method: c.req.method,
33 headers: c.req.raw.headers,
36 });
37
38 return app.fetch;
39}
86 const y = d3.select(this).attr("cy");
87
88 fetch(`/update?x=${x}&y=${y}&i=${d3.select(this).attr("idx")}`, { method: "post" });
89 d3.select(this).attr("stroke", null);
90 }
190 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
191});
192export default app.fetch;
17 console.log("🚨");
18
19 await fetch(DISCORD_WEBHOOK, {
20 method: "POST",
21 headers: {
108});
109
110export default app.fetch;