diff --git a/src/channels/slack.ts b/src/channels/slack.ts index 1c50eef..6b35c1f 100644 --- a/src/channels/slack.ts +++ b/src/channels/slack.ts @@ -1,7 +1,11 @@ import { fetchJson } from "../http.ts"; -import { formatEvent, type OpenMeetEvent } from "../openmeet.ts"; +import { type OpenMeetEvent } from "../openmeet.ts"; import type { Channel } from "./channel.ts"; +function formatEvent(e: OpenMeetEvent): string { + return ``; +} + export const slackOne = (e: OpenMeetEvent): string => `:sparkles: *New event posted:* ${formatEvent(e)}`; diff --git a/src/channels/stdout.ts b/src/channels/stdout.ts index 62d9f79..dc75170 100644 --- a/src/channels/stdout.ts +++ b/src/channels/stdout.ts @@ -1,6 +1,10 @@ -import { formatEvent, type OpenMeetEvent } from "../openmeet.ts"; +import { type OpenMeetEvent } from "../openmeet.ts"; import type { Channel } from "./channel.ts"; +function formatEvent(e: OpenMeetEvent): string { + return `${e.name} (${e.slug})`; +} + export const stdoutOne = (e: OpenMeetEvent): string => `New event: ${formatEvent(e)}`; export const stdoutMany = (events: OpenMeetEvent[]): string =>