docs: add discord-bot example (#126)

This commit is contained in:
Ettore Di Giacinto 2023-04-30 00:31:28 +02:00 committed by GitHub
parent 16773e2a35
commit 54b5eadcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 76 additions and 3 deletions

View file

@ -0,0 +1,28 @@
# discord-bot
## Setup
```bash
# Clone LocalAI
git clone https://github.com/go-skynet/LocalAI
cd LocalAI/examples/discord-bot
git clone https://github.com/go-skynet/gpt-discord-bot.git
# (optional) Checkout a specific LocalAI tag
# git checkout -b build <TAG>
# Download gpt4all-j to models/
wget https://gpt4all.io/models/ggml-gpt4all-j.bin -O models/ggml-gpt4all-j
# Set the discord bot options
cp -rfv .env.example .env
vim .env
# start with docker-compose
docker-compose up -d --build
```
Open up the URL in the console and give permission to the bot in your server. Start a thread with `/chat ..`