From 99e11fdd104ab2bfd27594d9ef0c3fbe039f2e76 Mon Sep 17 00:00:00 2001 From: Synthintel0 Date: Wed, 14 Jun 2023 11:00:54 +0800 Subject: [PATCH] update README for how to setup discord-bot --- agent_jarvis/.env_template | 3 +++ discord_bot/README.md | 2 ++ 2 files changed, 5 insertions(+) diff --git a/agent_jarvis/.env_template b/agent_jarvis/.env_template index ba2fa53..bb487b6 100644 --- a/agent_jarvis/.env_template +++ b/agent_jarvis/.env_template @@ -10,6 +10,9 @@ # Jarvis JARVIS_SERVER_MODE=true 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 JARVIS_AI_TEMPERATURE=0 diff --git a/discord_bot/README.md b/discord_bot/README.md index 1bd3d9f..a4da1e1 100644 --- a/discord_bot/README.md +++ b/discord_bot/README.md @@ -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. - run `npm install`. - 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 ``` # build docker image