chore: lint

This commit is contained in:
2025-12-23 15:48:34 -08:00
parent 5925f3aec0
commit 6d89b2772b
2 changed files with 45 additions and 43 deletions
+3 -2
View File
@@ -11,7 +11,8 @@ import { TwitterApi } from "twitter-api-v2";
* @param content - The main body of the announcement. * @param content - The main body of the announcement.
* @returns A message indicating the success or failure of the operation. * @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 ( if (
process.env.TWITTER_CONSUMER_KEY === undefined process.env.TWITTER_CONSUMER_KEY === undefined
|| process.env.TWITTER_CONSUMER_SECRET === undefined || process.env.TWITTER_CONSUMER_SECRET === undefined
@@ -56,4 +57,4 @@ export const announceOnTwitter = async(content: Array<string>): Promise<string>
return `Successfully sent initial post to Twitter. ${failedReplies.length > 0 return `Successfully sent initial post to Twitter. ${failedReplies.length > 0
? `Failed to send ${failedReplies.length.toString()} replies: ${failedReplies.join(", ")}` ? `Failed to send ${failedReplies.length.toString()} replies: ${failedReplies.join(", ")}`
: `All ${(content.length - 1).toString()} replies were sent successfully.`}`; : `All ${(content.length - 1).toString()} replies were sent successfully.`}`;
}; };
+2 -1
View File
@@ -11,7 +11,8 @@ import {
announcementSystemMessage, announcementSystemMessage,
} from "../config/announcements.js"; } from "../config/announcements.js";
import { getAiCost } from "../utils/getAiCost.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. * Generates announcements for all platforms using AI.