-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathinstall.sh
49 lines (40 loc) · 1.86 KB
/
install.sh
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
#!/bin/bash
echo " ██ ███ ███ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
██ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ████ ██ ████ ██ ██ █████ ██ ██ ███████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██████ ██ ████ ██ ██ ██ "
echo Make your own Free VPS Hosting, Dont Allow Mining
read -p "Are you sure you want to proceed? Agree to not allow mining (y/n): " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Installation aborted."
exit 1
fi
cd ~
echo "Installing python3-pip and docker."
sudo apt update
sudo apt install -y python3-pip docker.io
echo Installed successfully
echo "Writing Dockerfile..."
cat <<EOF > Dockerfile
FROM ubuntu:22.04
RUN apt update
RUN apt install -y tmate
EOF
echo Made successfully - Building Docker image.
echo "Building Docker Image"
sudo docker build -t ubuntu-22.04-with-tmate .
echo Built successfully
echo "Downloading main.py from the GitHub repository..."
wget -O main.py https://raw.githubusercontent.com/katy-the-kat/discord-vps-creator/refs/heads/main/v3ds
echo Downloaded successfully
echo "Installing Python packages: discord and docker..."
pip3 install discord docker
echo "Please enter your Discord bot token, Make a bot at discord.dev and get the token, You dont need any intents:"
read -r DISCORD_TOKEN
echo "Updating main.py with the provided Discord token..."
sed -i "s/TOKEN = ''/TOKEN = '$DISCORD_TOKEN'/" main.py
echo "Starting the Discord bot..."
echo "To start the bot in the future, run: python3 main.py"
python3 main.py