-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
83 lines (78 loc) · 2.72 KB
/
Copy pathsetup.bat
File metadata and controls
83 lines (78 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@echo off
setlocal enabledelayedexpansion
title ChatRobber Setup
echo.
echo ============================================
echo ChatRobber - Discord Conversation Logger
echo Quickstart Setup (Windows)
echo ============================================
echo.
REM ── Check Node.js ──────────────────────────────
echo [1/4] Checking for Node.js...
where node >nul 2>nul
if %errorlevel% neq 0 (
echo.
echo ERROR: Node.js is not installed or not in your PATH.
echo.
echo Please install Node.js 18+ from: https://nodejs.org
echo Download the LTS version, run the installer, then re-run this script.
echo.
pause
exit /b 1
)
for /f "tokens=1 delims=v" %%a in ('node --version') do set NODE_VER=%%a
for /f "tokens=1 delims=v." %%a in ('node --version') do set NODE_MAJOR=%%a
echo Found Node.js %NODE_VER%
REM ── Install dependencies ───────────────────────
echo.
echo [2/4] Installing dependencies (npm install)...
call npm install
if %errorlevel% neq 0 (
echo.
echo ERROR: npm install failed. Check the output above for details.
pause
exit /b 1
)
echo Dependencies installed successfully.
REM ── Create .env if needed ──────────────────────
echo.
echo [3/4] Checking for .env file...
if exist ".env" (
echo .env already exists - skipping creation.
) else (
if exist ".env.example" (
copy ".env.example" ".env" >nul
echo Created .env from .env.example
) else (
(
echo DISCORD_TOKEN=
echo DEEPGRAM_API_KEY=
echo OPENROUTER_API_KEY=
echo.
echo # Optional settings (defaults shown)
echo # SUMMARY_INTERVAL_MINUTES=10
echo # DEEPGRAM_MODEL=nova-3
echo # DEEPGRAM_LANGUAGE=en
echo # CHUNK_MODEL=google/gemini-2.0-flash-001
echo # FINAL_MODEL=google/gemini-2.0-flash-001
echo # DEBUG=false
) > ".env"
echo Created new .env file
)
echo.
echo Opening .env in your text editor - paste your API keys and save.
echo You need these three keys:
echo - DISCORD_TOKEN (from Discord Developer Portal)
echo - DEEPGRAM_API_KEY (from console.deepgram.com)
echo - OPENROUTER_API_KEY (from openrouter.ai/keys)
echo.
start notepad ".env"
echo Press any key once you have saved your .env file...
pause >nul
)
REM ── Start the bot ──────────────────────────────
echo.
echo [4/4] Starting ChatRobber...
echo (Press Ctrl+C to stop the bot)
echo.
call npm start