feat: more automated announcements #8

Merged
naomi merged 11 commits from feat/announcements into main 2026-01-08 18:07:28 -08:00
2 changed files with 45 additions and 43 deletions
Showing only changes of commit 6d89b2772b - Show all commits
+2 -1
View File
@@ -11,7 +11,8 @@ import { TwitterApi } from "twitter-api-v2";
* @param content - The main body of the announcement.
* @returns A message indicating the success or failure of the operation.
*/
export const announceOnTwitter = async(content: Array<string>): Promise<string> => {
export const announceOnTwitter
= async(content: Array<string>): Promise<string> => {
if (
process.env.TWITTER_CONSUMER_KEY === undefined
|| process.env.TWITTER_CONSUMER_SECRET === undefined
+2 -1
View File
@@ -11,7 +11,8 @@ import {
announcementSystemMessage,
} from "../config/announcements.js";
import { getAiCost } from "../utils/getAiCost.js";
import type { AnnouncementResponse } from "../interfaces/announcementResponse.js";
import type { AnnouncementResponse }
from "../interfaces/announcementResponse.js";
/**
* Generates announcements for all platforms using AI.