4 hours ago · Tech · 0 comments

This is trivial as heck as the kids say, but I really want to explore Val Town more this year and I thought of a great, and simple use for it. Both my wife and I are big Saints fans (this is their year, honest) and attend most of the games. If they're not playing at home, we're absolutely watching it on TV. We both really enjoy watching football, but honestly, not enough to watch ESPN and follow the news. I thought - why not simply get a summary of NFL news from the past week and build an automation of it? I had this running in less than ten minutes with Val Town. First, the code makes use of Google's Node SDK for working with Gemini. I setup my environment variable first and then used this code: import { GoogleGenerativeAI } from "npm:@google/generative-ai"; import { email } from "https://esm.town/v/std/email"; import { marked } from "npm:marked"; const genAI = new GoogleGenerativeAI(Deno.env.get("GEMINI_API_KEY")); const model = genAI.getGenerativeModel({ model: "gemini-2.5-pro" });…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.