1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
10 // gets newest blog from rss feed
11 const blogRSSLink = "https://posthog.com/rss.xml";
12 const response = await fetch(blogRSSLink);
13 const newestEntry =
14 (await parseXML(await response.text())).rss.channel
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let weather = async (place: string) => {
4 const req = await fetch(`https://wttr.in/${place}?format=j1`);
5 const res = await req.json();
6 return res;
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let nameTopHNThread = (async () => {
4 // Cheerio parses markup and provides an API to interact with the resulting data structure
5 const cheerio = await import("npm:cheerio"); // You can import NPM packages
6 const reply = await fetch("https://news.ycombinator.com/");
7 const replyText = await reply.text();
8 const $ = await cheerio.load(replyText);
1import { fetchXML as fetchXML2 } from "https://esm.town/v/stevekrouse/fetchXML?v=3";
2
3export let fetchXML = fetchXML2;
41 });
42 });
43 return app.fetch(req);
44});
1import { fetch } from "https://esm.town/v/std/fetch";
2
3let { californiaBusinessNotificationsLast } = await import("https://esm.town/v/tmcw/californiaBusinessNotificationsLast");
5export const californiaBusinessNotifications = (async () => {
6 const { parse } = await import("https://deno.land/x/xml/mod.ts");
7 const res: any = await fetch(
8 "https://bizfileonline.sos.ca.gov/api/FilingDetail/business/4603/false",
9 {
1import { fetchXML } from "https://esm.town/v/stevekrouse/fetchXML";
2
3export let untitled_blackCrayfish = fetchXML(
4 "https://www.readtangle.com/archive/rss/",
5);
1import { discordSendDM } from "https://esm.town/v/vtdocs/discordSendDM?v=6";
2import process from "node:process";
3import { discordFetch } from "https://esm.town/v/vtdocs/discordFetch?v=10";
4import { randomize } from "https://esm.town/v/stevekrouse/randomize";
5import { discordDMs } from "https://esm.town/v/stevekrouse/discordDMs";
15 )
16 ) {
17 const messages = await discordFetch(
18 process.env.discordBot,
19 // Note: not using pagination here
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let untitled_ivoryFlea = () => fetch("https://emojicdn.elk.sh/❤️");