A simple Bluesky bot to make sense of the noise, with responses powered by Gemini, similar to Grok.
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

at abb6b8b719ddcda62ed8548beab993459c39212e 23 lines 557 B view raw
1import { GoogleGenAI } from "@google/genai"; 2import { Bot } from "@skyware/bot"; 3import { env } from "./env"; 4 5export const bot = new Bot({ 6 service: env.SERVICE, 7 emitChatEvents: true, 8}); 9 10export const ai = new GoogleGenAI({ 11 apiKey: env.GEMINI_API_KEY, 12}); 13 14export const UNAUTHORIZED_MESSAGE = 15 "I can’t make sense of your noise just yet. You’ll need to be whitelisted before I can help."; 16 17export const SUPPORTED_FUNCTION_CALLS = [ 18 "search_posts", 19] as const; 20 21export const MAX_GRAPHEMES = 1000; 22 23export const MAX_THREAD_DEPTH = 10;