2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
3import { resume as resume2 } from "https://esm.town/v/ajax/resume";
4
5export async function annoy() {
6 const resume = resume2;
7 // const boo = await import("https://esm.sh/@atproto/api");
4It's split into three parts:
51. [`bsky_rss_poll`](https://val.town/@jordan.bsky_rss_poll)
6 - This function runs every hour and polls the provided RSS feed, turns it into XML and runs the check. If there *is* a new post, it tell `rss_to_bsky`to post a link (and the title) to Bluesky
72. [`latest_rss`](https://val.town/@jordan.latest_rss)
8 - This is a stored object that keeps the latest object for the poll to test against
93. [`rss_to_bsky`](https://val.town/@jordan.rss_to_bsky)
10 - This function turns the text post into a rich text post and posts it to Bluesky
4import { latest_rss as latest_rss2 } from "https://esm.town/v/jordan/latest_rss";
5
6export async function bsky_rss_poll() {
7 const { parseFeed } = await import("https://deno.land/x/rss/mod.ts");
8 const res = await fetch("https://v8.dev/blog.atom")
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
1import { gron } from "https://esm.town/v/u/gron";
2
3export default async function untitled_roseClownfish(req: Request): Promise<Response> {
4 let url: URL;
5 try {
6}
7
8export async function refreshToken({ email, token }: RefreshVerificationTokenParams) {
9 const newToken = crypto.randomUUID();
10
6}
7
8export async function sendVerification({ emailAddress, html }: VerificationEmailParams) {
9 try {
10 // email a confirmation link to the subscriber
5}
6
7export function fetchConfirmationHtml({ email, token, reVerifying }: FetchVerificationEmailHtmlParams) {
8 const confirmationLink = `https://petemillspaugh.com/make-it-stick/email-confirmation?email=${email}&token=${token}`;
9 const html = `
Simple functional CSS library for Val Town
A helper function to build a file's email
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.