Skip to content

Commit

Permalink
Update .env examples
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed May 17, 2024
1 parent 6c5ffbe commit bf4b445
Showing 1 changed file with 42 additions and 9 deletions.
51 changes: 42 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
# Discord bot token with message content intents, from https://discord.com/developers/applications
DISCORD="TOKEN"
APPLICATION_ID=""
# !! Core Discord application settings

# Channels to talk to the AI in
CHANNELIDS="123456789012345678,123456789012345678"
# Discord bot token; requires MESSAGE_CONTENT intent, see: [link to be added later]
DISCORD_TOKEN=MTAzMDQ2NzEyMzQ1Njc4OTAyNDU2Nzgw.THIS_IS_NOT-A_REAL_TOKEN.VvE5Rhe_i-BKp9G97LPJZn5aBr4

REPLY_CHANCE=0.99
APPLICATION_ID=123456789012345678

# For Workers AI
CF_ACCOUNT="ACCOUNT_ID"
CF_TOKEN=""
# !! Environment context

# Specify the Node environment context that SpongeChat should be running in.
## Usually, env#NODE_ENV is either one of PRODUCTION, DEVELOPMENT, or STAGING.
NODE_ENV=DEVELOPMENT

# These keys are used for developer mode and debugging.
DEV_GUILD=123456789012345678
DEV_UNLOCK_ROLE=123456789012345678

# !! Database (k/V)

# A Valkey (Redis OSS)-compatible key/value store is required to run SpongeChat 2.
## Although Dragonfly uses the BSL, it is currently the only Redis-compatible k/V store that supports JSON.
## Dragonfly has decent corporate goodwill and the BSL changes to OSS after 4 years. As such, we use it.
KV_URI=redis://127.0.0.1:6379

# !! Model activation settings

# Select a mode for model activation.
## WHITELIST only allows channels specified in ACTIVATION_LIST.
## BLACKLIST allows all channels other than those specified in ACTIVATION_LIST.
ACTIVATION_MODE=WHITELIST

# A comma-separated list of channel IDs. Read env#ACTIVATION_MODE for more information.
ACTIVATION_CHANNEL_SETLIST=123456789012345678

# !! Model settings

# Workers AI: Specify a Cloudflare account ID and token for use with Workers AI.
## SAFETY WARNING: Scope your API token to only be accessible with Workers AI.
CLOUDFLARE_ACCOUNT_ID=abcdef1234567890abcdef1234567890

CLOUDFLARE_ACCOUNT_TOKEN=v1.0-abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890

# The following variables specify instruction sets and configuration for the various models in SpongeChat.
## The value of the variable should correspond to the key of its' responding configuration in modelConstants.js.
MODEL_LLM_PRESET=default

0 comments on commit bf4b445

Please sign in to comment.