update README for how to setup discord-bot

This commit is contained in:
Synthintel0
2023-06-14 11:00:54 +08:00
parent be62e60b35
commit 99e11fdd10
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@
# Jarvis # Jarvis
JARVIS_SERVER_MODE=true JARVIS_SERVER_MODE=true
JARVIS_SERVER_MODE_PORT=10000 JARVIS_SERVER_MODE_PORT=10000
# If you use Jarvis through discord bot, you need to set JARVIS_SERVER_MODE=false
# and set JARVIS_BOT_SERVER_URL according to the discord's config.
JARVIS_BOT_SERVER_URL="http://localhost:10000"
# OpenAI/ChatGPT temperature # OpenAI/ChatGPT temperature
JARVIS_AI_TEMPERATURE=0 JARVIS_AI_TEMPERATURE=0
+2
View File
@@ -38,6 +38,8 @@ Using Jarvis Discord Bot you can interact with Jarvis through Discord app on var
- Copy and paste the previously obtained `Token` and `CLIENT ID` into the `.env.local` file. - Copy and paste the previously obtained `Token` and `CLIENT ID` into the `.env.local` file.
- run `npm install`. - run `npm install`.
- run `npm run start:bot`. - run `npm run start:bot`.
NOTE: You need to set `JARVIS_SERVER_MODE=false` and `JARVIS_BOT_SERVER_URL="http://localhost:10000"` in the Jarvis's `.env` file
### Running the bot in docker ### Running the bot in docker
``` ```
# build docker image # build docker image