Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 62bf465

Browse files
authored
Merge pull request #3 from vigneshd332/expt
Expt
2 parents d9b11c8 + f0cc22a commit 62bf465

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,19 @@ client.on('message', message => {
6060

6161
if (message.content.startsWith(`${process.env.prefix}tts`)) {
6262
awaiting.push(message.author.id);
63-
63+
let lang = message.content.split(" ")
64+
let act = lang[1];
6465
let toMp3 = message.content.split(" ");
6566
toMp3.shift();
67+
toMp3.shift();
6668
toMp3 = toMp3.join(" ");
6769

6870
let options = {
6971
directory: `././audio`,
7072
filename: `${message.author.id}.mp3`
7173
}
7274

73-
tts(toMp3, 'en', 1)
75+
tts(toMp3, act, 1)
7476
.then(url => {
7577
download(url, options)
7678
.then(() =>

0 commit comments

Comments
 (0)