Skip to content
Advertisement

How to make the bot not said the language code?

I’m trying to code discord tts bot but I run into a problem. When I used $speak en Hi guys the bot said "en hi guys".

I tried making the bot not say the language code but I can’t so if you have any solution please share it with me.

Here is my code:

JavaScript

Advertisement

Answer

You will need to remove the first item ("en") from your args array and join the rest:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement