generated from nhcarrigan/template
chore: lint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user