Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/patricnox/discordbot-voice-bot
- Owner: PatricNox
- Created: 2024-05-18T21:14:30.000Z (6 months ago)
- Default Branch: release
- Last Pushed: 2024-05-18T21:18:27.000Z (6 months ago)
- Last Synced: 2024-05-18T22:25:57.211Z (6 months ago)
- Topics: ai-bot, discord-bot-ai, discordjs
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.