1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getMunichSwimCapacit() {
4 const organizationUnitIds = [
5 { id: 30182, name: "Olympia-Schwimmhalle" },
21 { id: 30200, name: "Dantebad Sauna" },
22 ];
23 async function fetchCount(id) {
24 const endpoint =
25 `https://functions.api.ticos-systems.cloud/api/gates/counter?organizationUnitIds=${id}`;
26 const response = await fetch(endpoint, {
27 headers: {
49 return { id, personCount, maxPersonCount };
50 }
51 async function populateUnits() {
52 for (let unit of organizationUnitIds) {
53 const populatedUnit = await fetchCount(unit.id);
1import process from "node:process";
2
3export async function updateTicketCoordinator() {
4 // read user profiles and fint those who want to be a tickets master and add those to group @tickets-coordinators
5 // Require the Node Slack SDK package (github.com/slackapi/node-slack-sdk)
1export function myApi(name) {
2 return "hi " + name;
3}
2import { rssFeeds } from "https://esm.town/v/andreterron/rssFeeds";
3
4export async function pollRSSFeeds({ lastRunAt }) {
5 return Object.entries(rssFeeds).map(async ([name, url]) => {
6 let items = await newRSSItems({
1export function myApi(name) {
2 return "hi " + name;
3}
1export function arrayDiff(a, b) {
2 return a.filter((e) => !b.includes(e));
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",