Skip to content

Discord bot that you can talk to through Voice channels!

Notifications You must be signed in to change notification settings

PatricNox/discordbot-voice-bot

Repository files navigation

DiscordJS Talk2Bot

A discordjs project integrating with GROQ AI Models to have a bot with you in the voice channel. This bot can reply to you as you speak to it and can perform actions for you if you add support to it.

This bot will join any active voice channel and greet them with a random line defined in core/config.js through voice (TTS).

Users can talk to the bot by refering to it as "Olga".

Examples

(USER): Olga, what is 44+42
(BOT TTS): 44+42 is 86!


(USER): Olga, create a discord channel called "test"
(BOT TTS): OK, created

For custom commands, check responses.json and implement accordingly in handlers/respondToSpeech.js

Setup

Dependencies

You also need to download a Vosk model and place in /models.

Steps

first,

  • mv responses.json.example responses.json
  • mv .env.example .env

then,

  • Configure responses.json
  • Configure .env

finally,

npm install && node index.js

Languages

Change accordingly in the vosk model iniator. You also need to edit the prompt in .env to define what language you want the answer to be in.

About

Discord bot that you can talk to through Voice channels!

Topics

Resources

Stars

Watchers

Forks