This Discord bot allows users to communicate in a voice chat without needing a microphone. By utilizing a Text to Speech service, such as Google TTS, the bot can convert a user's text messages into speech.
Follow these steps to get the bot up and running quickly.
- Clone this repository to your local machine.
- Open a terminal window and navigate to the cloned directory.
- Install the required NodeJS dependencies by running the command:
npm install
- Configure the bot by editing the
config.json
file:TOKEN
: Your Discord bot's token, which can be found on your Discord developer portalPREFIX
: (Optional) Change the bot's command prefix if desired
The bot relies on the following NodeJS libraries:
"PREFIX"ping
- Responds with "Pong!""PREFIX"speak <text>
- Converts the provided text to speech and plays it in the voice channel
- Ensure that the bot has the necessary permissions to join and speak in voice channels.
- The text for the
speak
command should be less than 200 characters.
From HieuK With Love <3