-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
31 lines (31 loc) · 1.22 KB
/
package.json
File metadata and controls
31 lines (31 loc) · 1.22 KB
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
{
"name": "bsky-hoffbot",
"version": "2.0.0",
"type": "module",
"dependencies": {
"@skyware/bot": "^0.3.7",
"cron": "^3.1.0",
"dotenv": "^16.3.1",
"process": "^0.11.10",
"sqlite3": "^5.1.7",
"tsx": "^4.19.2"
},
"devDependencies": {
"@types/node": "^22.9.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
},
"scripts": {
"start": "mv logs/hoffbot.log logs/hoffbot-$(date +\"%Y-%m-%d_%H-%M-%S\").log 2>/dev/null || true && tsx src/index.ts | tee -a logs/hoffbot.log",
"start:monitor": "tsx src/utils/processMonitor.ts",
"db:init": "tsx src/database/init.ts",
"health": "curl -s http://localhost:3001/health | jq '.' || curl -s http://localhost:3001/health",
"hoffbot:daily-hoff": "tsx src/scripts/daily-hoff.ts | tee -a logs/daily-hoff.log",
"hoffbot:get-posts": "tsx src/scripts/get-posts.ts | tee -a logs/get-posts.log",
"hoffbot:like-mentions": "tsx src/scripts/like-mentions.ts | tee -a logs/like-mentions.log",
"logs:clean": "find logs -name '*.log' -type f -mtime +30 -delete && echo 'Cleaned logs older than 30 days'",
"check:types": "tsc --noEmit",
"format": "prettier --write 'src/**/*.ts'",
"format:check": "prettier --check 'src/**/*.ts'"
}
}