-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
24 lines (17 loc) · 903 Bytes
/
Copy path.env.example
File metadata and controls
24 lines (17 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copy to .env and fill in. Never commit your real .env.
# OAuth2 user access token with the dm.read + dm.write scopes.
X_ACCESS_TOKEN=
# The conversation to watch. For a 1:1 chat this is the other user's ID;
# for a group it is the group conversation ID (prefixed with "g").
CHAT_CONVERSATION_ID=
# --- Key storage: choose ONE of the two options below ---
# Option A (quickstart): the bot's private key blob (base64 of 32 or 64 bytes),
# as printed on first run. Leave blank to generate + register a new identity.
CHAT_PRIVATE_KEYS_B64=
# Option B (production): recover keys from Juicebox with a PIN instead of a local
# blob. If set (with X_ACCESS_TOKEN), the bot ignores CHAT_PRIVATE_KEYS_B64.
CHAT_PIN=
# The version the X API reports for the bot's registered public key.
CHAT_SIGNING_KEY_VERSION=1
# Optional: the bot's own user ID. If blank it is fetched via /2/users/me.
CHAT_BOT_USER_ID=