6import { bebopBotSecretToken } from "https://esm.town/v/z233/bebopBotSecretToken";
7
8export async function bebopBotWebhook(
9 req: express.Request,
10 res: express.Response
87 );
88 res.send("ok");
89 function getMarkdownLink(text, url) {
90 return `[${text}](${url})`;
91 }
1export function add(a?: number, ...nums: number[]) {
2 return nums.reduce((a, b) => a + b, a) ?? a;
3}
1import { dinoGameScoreboard } from "https://esm.town/v/rodrigotello/dinoGameScoreboard";
2
3export function updateDinoScoreboard(newScore) {
4 dinoGameScoreboard.push(newScore);
5 return dinoGameScoreboard;
1import { fetchHtmlDom } from "https://esm.town/v/aeaton/fetchHtmlDom";
2
3export async function peelSessionArtistSession(url) {
4 const dom = await fetchHtmlDom(url);
5 const headings = dom.querySelectorAll("h3");
1export function myApi(name) {
2 return "hi " + name;
3}
2import process from "node:process";
3
4export function public_signMessage(message: string, password: string) {
5 if (password === process.env.sign_pwd) {
6 return private_signMessage(message);
2import { db } from "https://esm.town/v/sigdel/db";
3
4export async function syncMusclePower(data: any) {
5 const { user, workouts, exercises, workoutLog } = data;
6 if (!db[user]) {
5// Sends an email with all the open PRs that have not had any activity
6// for specified period of days
7// Set up this function to run every day (or any interval)
8export async function staleGithubPRsEmail() {
9 // Set up a secret named githubRepos with all the repos you want to analyze (comma separated)
10 let repos = process.env.githubRepos.split(",").filter((r) =>
1export async function TanaPasteExample(req, res) {
2 // you call this functioin from Tana's make API request
3 // as https://api.val.town/express/@bikefixe.TanaPasteExample?arg=stufftopassin
1export async function untitled_magentaBee() {
2 const { default: axios } = await import("npm:axios");
3 const url =
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",