Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.43 KB

env-general.md

File metadata and controls

42 lines (36 loc) · 1.43 KB

Configuration of Dotenv file for Civ6Bot

Template for general.env is described below.

TEST_MODE=
TEST_BOT_TOKEN=
BOT_TOKEN=

OAUTH2_BOT_CLIENT_ID=
OAUTH2_BOT_SECRET=
OAUTH2_REDIRECT_LINK=
OAUTH2_REDIRECT_URI_FOR_TOKEN=

STEAM_KEY=

DATABASE_HOSTNAME=
DATABASE_PORT=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=

SERVER_HTTP_PORT=
  1. TEST_MODE: test mode switch. set 1 for test mode or 0 for release mode.
  2. TEST_BOT_TOKEN: Discord token for test bot (in test mode).
  3. BOT_TOKEN: Discord token for live bot (release mode).
  • You can find additional info about Discord bot tokens here.
  1. OAUTH2_BOT_CLIENT_ID:
  2. OAUTH2_BOT_SECRET:
  3. OAUTH2_REDIRECT_LINK:
  4. OAUTH2_REDIRECT_URI_FOR_TOKEN:
  • You can find additional info about Discord OAuth2 here.
  1. STEAM_KEY: key for Steam WebAPI.
  • You can find additional info about Steam Web API here.
  1. DATABASE_HOSTNAME: IP Address of outer database.
  2. DATABASE_PORT: port of outer database.
  3. DATABASE_USER: username for connection to outer database.
  4. DATABASE_PASSWORD password for connection to outer database.
  5. DATABASE_NAME: outer database name.
  1. SERVER_HTTP_PORT: Express server port.