-
Notifications
You must be signed in to change notification settings - Fork 1
/
maintain.ts
35 lines (24 loc) · 1.13 KB
/
maintain.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'dotenv/config';
import { createGithubIssueTemplates } from './functions/create-github-issue-templates.js';
import { createNewPost } from './functions/create-new-post.js';
import { exchangeInboxAndTrash } from './functions/exchange-inbox-and-trash.js';
// import { grabManualPosts } from './functions/grab-manual-posts.js';
import { importStoreInbox } from './functions/import-store-inbox.js';
import { importTelegramBotUpdates } from './functions/import-telegram-bot-updates.js';
import { maintainPreviews } from './functions/maintain-previews.js';
import { publishPosts } from './functions/publish-posts.js';
import { renderDocs } from './functions/render-docs.js';
import { updatePosts } from './functions/update-posts.js';
await createGithubIssueTemplates();
// TODO: fix parsing captions (causing wrong tags in posts)
// await grabManualPosts();
await importStoreInbox();
await importTelegramBotUpdates();
await exchangeInboxAndTrash();
await updatePosts();
await createNewPost();
await publishPosts();
await maintainPreviews();
await renderDocs();
// Telegram waits for too long to disconnect, exit process manually
process.exit();