Skip to content

Commit b027b07

Browse files
committed
feat: bug fixes and improvements
1 parent b316e6f commit b027b07

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/components/utils/requirements.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,24 @@ function checkChrome() {
6161
}
6262
}
6363

64+
function checkFFMPEG() {
65+
try {
66+
const version = execSync("ffmpeg -version")
67+
.toString()
68+
.split("\n")[0]
69+
.trim();
70+
log.info("FFMPEG", version);
71+
} catch {
72+
log.warn("FFMPEG", "FFmpeg not found. Some features may not work.");
73+
}
74+
}
75+
6476
export function checkRequirements() {
6577
log.info("Requirements", "Checking bot requirements...");
6678
checkNodeVersion();
6779
checkDatabase();
6880
checkRedis();
6981
checkChrome();
82+
checkFFMPEG();
7083
log.info("Requirements", "Bot requirements check complete.");
7184
}

0 commit comments

Comments
 (0)