diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-14 09:20:32 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-14 17:20:01 +0200 |
| commit | bd9c98ca7e3a6e5bf83f700ab202943873a5441b (patch) | |
| tree | b5f03943274c65ad27b6329aee855abcb36e9506 /src/tasks.ts | |
| parent | c890ea83d6e49702f0e3201b29c472f095193133 (diff) | |
Implement Slack commands
Diffstat (limited to 'src/tasks.ts')
| -rw-r--r-- | src/tasks.ts | 16 |
1 files changed, 3 insertions, 13 deletions
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[] = []; |
