-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·50 lines (39 loc) · 1.04 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·50 lines (39 loc) · 1.04 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
#!/usr/bin/env bash
set -e
# check for git
if ! command -v git &>/dev/null; then
echo "git not found, please install it first"
exit 1
fi
# check for python3
if ! command -v python3 &>/dev/null; then
echo "python3 not found, please install it first"
exit 1
fi
# clone repo
if [ ! -d "jailbreaksappstatus" ]; then
git clone https://github.com/bradleytechman/jailbreaksappstatus.git
fi
cd jailbreaksappstatus
# create virtual environment
if [ ! -d "venv" ]; then
python3 -m venv venv
fi
# activate venv
source venv/bin/activate
# upgrade pip
pip install --upgrade pip
# install dependencies
pip install -r requirements.txt
# create .env
echo "setting up .env file..."
read -p "Enter DISCORD_TOKEN: " token
read -p "Enter default STATUS_NOTE (optional, press enter to skip): " note
read -p "Enter webhook URL for logging (optional, press enter to skip):" webhook
cat > .env <<EOL
DISCORD_TOKEN=$token
STATUS_NOTE=$note
WEBHOOK_URL="$webhook"
EOL
echo "setup complete!"
echo "run the bot with: source venv/bin/activate && python bot.py"