15export const mt = async (req, res) => {
16 const r = await fetchJSON(
17 "https://app.moderntreasury.com/api/user_onboardings",
18 {
19 method: "POST",
23 headers: await basicAuthorization(
24 process.env.mtOrganizationId,
25 process.env.mtApiKey,
26 ),
27 },
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
8 for (let i = 0; i < count; i++) {
9 let start = Date.now();
10 await fetch("https://api.val.town/eval/(()=%3E1+1)()");
11 evalTimes.push(Date.now() - start);
12 }
23 for (let i = 0; i < count; i++) {
24 let start = Date.now();
25 await fetch("https://api.val.town/eval/@healeycodes.addOnes()");
26 userFuncTimes.push(Date.now() - start);
27 }
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);
1export function myApi(name) {
2 return "hi " + name;
3}
5 url: url,
6 };
7 let resp = await fetch("https://api.util.fyi/shorten/", {
8 method: "POST",
9 headers: {
1import process from "node:process";
2import { discordAPI } from "https://esm.town/v/joey/discordAPI";
3
4// add the bot to your server before calling:
8// await @joey.sendDiscordMessage('some-channel-id', 'hello world!');
9export const sendDiscordMessage = (channelId: string, message: string) =>
10 discordAPI({
11 path: `/channels/${channelId}/messages`,
12 method: "POST",
4export let boredActivities = async () => {
5 const { activity } = await fetchJSON(
6 "https://www.boredapi.com/api/activity",
7 );
8 return activity;
1export function myApi(name) {
2 return "hi " + name;
3}