2import { normalizeURL } from "https://esm.town/v/stevekrouse/normalizeURL?v=3";
3
4export async function fetchTweet(url) {
5 const tweetId = url.match(/(\d{19})/)[1];
6 const tweetUrl =
1export function cronTest() {
2 console.log("hello world");
3 return "hello world";
1let { incrementer } = await import("https://esm.town/v/prepor/incrementer");
2
3export function pingMe() {
4 incrementer += 1;
5 console.email(`How are you? ${incrementer}`);
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function spellCheckTest(
4 req: express.Request,
5 res: express.Response,
29 <h3>School: ${spell["school"]["name"]}</h3>
30 <h3>Description: ${spell["desc"][0]}</h3>
31 <button onclick="myFunction()">Reveal Spell</button><br>
32 <div id="myDIV"></div>
33 <button type="button" onClick="window.location.reload();">Check a new Spell</button>
34 </div>
35 <script>
36 function myFunction() {
37 var x = document.getElementById("myDIV");
38 if (x.innerHTML === "") {
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
2import { Diamond_Create } from "https://esm.town/v/ralfw/Diamond_Create";
3
4export function Diamond_Produce(size: number): string {
5 if (size <= 1)
6 return "*";
3import { refreshData } from "https://esm.town/v/u/refreshData";
4
5export async function refresher(name: string) {
6 let resp = "";
7 if (refreshData[name] === undefined) {
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function wikitxt(article: string) {
4 try {
5 const wiki = await fetch(
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": "*",