Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patricnox/discordbot-voice-bot

Discord bot that you can talk to through Voice channels!
https://github.com/patricnox/discordbot-voice-bot

ai-bot discord-bot-ai discordjs

Last synced: 7 days ago
JSON representation

Discord bot that you can talk to through Voice channels!

Awesome Lists containing this project

README

        

# 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

* [ffmpeg](https://gyan.dev/ffmpeg/builds/)
* [NodeJS 20+](https://nodejs.org/en)

You also need to download a [Vosk model](https://alphacephei.com/vosk/models) 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.