vtdocs
resyGetMatchingSlot
Script
(Part of: https://www.val.town/v/vtdocs.resyBot) This val attempts to return a single valid slot (per the time range requirements). If there are no valid slots, it throws an error. When there are multiple valid slots, it picks the middle slot (by ordering, not necessarily by time).
1
yawnxyz
audioManager
Script
Usage: import { ai } from "https://esm.town/v/yawnxyz/ai";
import { AudioManager } from "https://esm.town/v/yawnxyz/audioManager";
let audio = new AudioManager();
let joke = await ai("tell me a joke in chinese!");
console.log('text', joke)
let result = await audio.textToSpeechUpload(joke, {key: "random-joke.mp3"});
console.log('result:', result)
0
jamiedubs
glifJson
HTTP
fetches a simplified version of a Glif response object; I use this in other glifs with the WebFetcher block use like:
https://jamiedubs-glifjson.web.val.run/?id=clgh1vxtu0011mo081dplq3xs to fetch only the raw glif JSON, specify ?data=1 :
https://jamiedubs-glifjson.web.val.run/?id=clgh1vxtu0011mo081dplq3xs&data=1 to fetch a list of recently featured glifs try @jamiedubs/glifs #glif #glifs
1
Updated: April 3, 2024