5- signature should be the X-Signature-Ed25519 header
6- timestamp should be the X-Signature-Timestamp header
7You **must** return a 401 error and return early if this function returns false, otherwise you will pretty quickly get a big scary warning from Discord that your endpoint has been removed. Note that you'll only be able to add one once you've integrated this correctly.
8
9As this function only deals with strings, it doesn't matter whether you use an Express or web endpoint.
10
11Migrated from folder: discord/verify_discord_signature
1Migrated from folder: functions/messageMe
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": "*",