From bd9c98ca7e3a6e5bf83f700ab202943873a5441b Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 14 Mar 2024 09:20:32 +0200 Subject: Implement Slack commands --- src/tasks.ts | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/tasks.ts') diff --git a/src/tasks.ts b/src/tasks.ts index 388dde8..18b6fe8 100644 --- a/src/tasks.ts +++ b/src/tasks.ts @@ -1,17 +1,7 @@ -export interface InstagramTask { - type: "download_instagram"; - url: string; - replyId: string; -} +import { InstagramTask } from "./instagram_task"; -export interface SlackReplyTask { - type: "slack_reply"; - replyId: string; - message: string; - filePath: string; -} - -export type Task = InstagramTask | SlackReplyTask; +// union of possible task types +export type Task = InstagramTask; const taskQueue: Task[] = []; -- cgit v1.3