@skyphusion/sidvicious-exe 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +26 -0
- package/LICENSE +662 -0
- package/NOTICE +3 -0
- package/README.md +230 -0
- package/bot.mjs +810 -0
- package/lib/helpers.mjs +150 -0
- package/package.json +54 -0
package/.env.example
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SidVicious_exe environment template. Copy to .env (local) or stacks/.env (Docker).
|
|
2
|
+
# Never commit the filled-in copy; .env and stacks/.env are gitignored.
|
|
3
|
+
|
|
4
|
+
# --- Discord ---
|
|
5
|
+
DISCORD_TOKEN= # required: bot token from the Developer Portal
|
|
6
|
+
DISCORD_CHANNEL_IDS= # optional: comma-separated channel IDs (empty = DMs + @mentions)
|
|
7
|
+
DISCORD_MODEL=anthropic/claude-sonnet-4-6 # optional: chat model
|
|
8
|
+
DISCORD_HISTORY=20 # optional: rolling history depth in exchange pairs
|
|
9
|
+
|
|
10
|
+
# --- Cloudflare (one token covers chat + images; get from dash or `wrangler auth token`) ---
|
|
11
|
+
CF_ACCOUNT_ID= # required for Claude + images
|
|
12
|
+
CF_API_TOKEN= # required for Claude + images (alias: CF_AIG_TOKEN)
|
|
13
|
+
CF_AIG_GATEWAY_ID=skyphusion-llm # optional: AI Gateway name
|
|
14
|
+
# CF_GATEWAY_ENDPOINT= # optional: full compat URL override (built from account + gateway id if unset)
|
|
15
|
+
|
|
16
|
+
# --- D1 session persistence (optional; needs D1 Edit on the token) ---
|
|
17
|
+
CF_D1_DATABASE_ID= # optional: D1 database ID
|
|
18
|
+
# CF_D1_TOKEN= # optional: D1 token if different from CF_API_TOKEN
|
|
19
|
+
|
|
20
|
+
# --- Search worker (optional; deploy search-worker first) ---
|
|
21
|
+
SEARCH_WORKER_URL= # optional: search Worker base URL
|
|
22
|
+
SEARCH_SECRET= # optional: shared secret for X-Search-Secret header
|
|
23
|
+
|
|
24
|
+
# --- Ollama fallback (optional; omit CF_API_TOKEN to enable, chat only, no images) ---
|
|
25
|
+
# OLLAMA_BASE_URL=http://127.0.0.1:11434/v1
|
|
26
|
+
# DISCORD_MODEL=qwen3:8b
|