Skip to content

Commit

Permalink
Fix voices location bug
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Sachivka <juicy.igor@gmail.com>
  • Loading branch information
isachivka committed May 26, 2023
1 parent cf78fa4 commit 5575b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/processors/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const voiceProcessor = async (
) => {
const rootDir = path.join(process.cwd(), './');
setFfmpegPath(installer.path);
const ogaPath = path.resolve(rootDir, `/voices/${user.id}.oga`);
const mp3Path = path.resolve(rootDir, `/voices/${user.id}.mp3`);
const ogaPath = path.resolve(rootDir, `voices/${user.id}.oga`);
const mp3Path = path.resolve(rootDir, `voices/${user.id}.mp3`);
await download(voiceUrl.toString(), ogaPath);
await new Promise<void>((res, rej) => {
ffmpeg(ogaPath)
Expand Down
Empty file added voices/.keep
Empty file.

0 comments on commit 5575b6c

Please sign in to comment.