4const query = "\"val.town\" OR \"val town\" -_ValTown_";
5
6export async function twitterAlert({ lastRunAt }: Interval) {
7 const results = await twitterSearch({
8 query,
65const defaultEmbeddingColumn = "Embeddings";
66
67async function fetchAirtableData(baseId, tableName, nameColumn, contentColumn, embeddingColumn) {
68 const base = new Airtable({ apiKey: airtableApiKey }).base(baseId);
69 const records = await base(tableName).select().all();
78}
79
80async function searchDocuments(c, query, similarityThreshold) {
81 const baseId = c.req.query("base_id") || defaultBaseId;
82 const tableName = c.req.query("table_name") || defaultTableName;
1Bot for Cama discord server. To initialize new slash commands, you have to run a separate bit of code. This is for modifying their functionality
18const defaultEmbeddingColumn = "Embeddings";
19
20async function fetchAirtableData(baseId, tableName, contentColumn, embeddingColumn) {
21 const base = new Airtable({ apiKey: airtableApiKey }).base(baseId);
22 const records = await base(tableName).select().all();
1import { resumeSections } from "https://esm.town/v/iamseeley/resumeSections";
2
3export function processResume(resume, sectionOrder = [], templates = {}) {
4 const allSections = [
5 'header', 'summary', 'education', 'work', 'projects', 'volunteer',
1import resumeValidate from "https://esm.town/v/iamseeley/resumeValidate";
2
3export async function validateResume(resumeJson) {
4 try {
5 const resumeDetails = JSON.parse(resumeJson);
7import { Hono } from "npm:hono@3";
8
9function esmTown(url) {
10 return fetch(url, {
11 headers: {
7// import "https://esm.sh/tldraw/tldraw.css";
8
9export function App() {
10 return (
11 <>
10 * @param authorization
11 */
12export async function telegramText(text: string, options?: TextOptions, authorization?: string) {
13 return telegramRequest("text", { text, options }, authorization);
14}
20 * @param authorization
21 */
22export async function telegramPhoto(options: PhotoOptions, authorization?: string) {
23 return telegramRequest("photo", { options }, authorization);
24}
25
26async function telegramRequest(path, body, authorization?: string) {
27 const response = await fetch("https://stevekrouse-telegramValTownAPI.web.val.run/" + path, {
28 method: "POST",
47 * @deprecated since 4/20/2024
48 */
49export async function telegram(secret: string, text: string, options?: MergedOptions) {
50 return runVal("stevekrouse.telegramValTownBot", secret, text, options);
51}
1export default function() {
2 return fetch("file:///opt/render/project/src/guest/index.ts");
3}