Skip to content

Latest commit

 

History

History
56 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

56 lines (30 loc) · 1.21 KB

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.