-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
48 lines (38 loc) · 1.01 KB
/
setup.bat
File metadata and controls
48 lines (38 loc) · 1.01 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
@echo off
title Discord Transcript Bot Setup
echo 🔧 Setting up Discord Transcript Bot...
:: Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python not found. Please install Python 3.10 or higher.
pause
exit /b 1
)
:: Create virtual environment
if not exist "venv" (
echo 📦 Creating virtual environment...
python -m venv venv
)
:: Activate venv
call venv\Scripts\activate.bat
:: Upgrade pip
python -m pip install --upgrade pip
:: Install requirements
echo 📥 Installing dependencies...
pip install -r requirements.txt
:: Setup .env if not exists
if not exist ".env" (
echo ⚙️ Creating .env file from example...
copy .env.example .env
echo ⚠️ Please edit .env with your DISCORD_TOKEN and SERVER_ID.
echo Press any key after editing...
pause >nul
)
:: Create assets directory
if not exist "assets" mkdir assets
:: Create transcripts directory
if not exist "transcripts" mkdir transcripts
:: Run the bot
echo 🚀 Starting bot...
python main.py
pause