setup.sh aktualisiert

This commit is contained in:
M_Viper 2024-08-15 17:42:39 +00:00
parent ddfe7790d9
commit 446b4d4b4d
1 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ fi
# Überprüfen, ob npm installiert ist # Überprüfen, ob npm installiert ist
if ! command -v npm &> /dev/null; then if ! command -v npm &> /dev/null; then
echo "npm ist nicht installiert. Installiere npm automatisch..." echo "npm ist nicht installiert. Installiere npm automatisch..."
sudo apt install -y npm # Oder passen Sie dies an Ihr System an sudo apt install -y npm
fi fi
# Laden Sie die Umgebungsvariablen aus der .env-Datei # Laden Sie die Umgebungsvariablen aus der .env-Datei
@ -30,7 +30,7 @@ echo -e "Creating a new Node.js project..."
echo -e "Project name: $PROJECT_NAME" echo -e "Project name: $PROJECT_NAME"
echo -e "Version: 1.0.0" echo -e "Version: 1.0.0"
echo -e "Description: Node.js project" echo -e "Description: Node.js project"
echo -e "Entry point: plex-bot.js" # Hier Dateinamen anpassen echo -e "Entry point: plex-bot.js"
echo -e "Test command: " echo -e "Test command: "
echo -e "Git repository: " echo -e "Git repository: "
echo -e "Keywords: " echo -e "Keywords: "
@ -46,7 +46,7 @@ sudo npm install ping
sudo npm install node-telegram-bot-api sudo npm install node-telegram-bot-api
sudo npm install js-yaml sudo npm install js-yaml
sudo npm install moment sudo npm install moment
sudo npm install yaml # Änderung: 'yaml' anstelle von 'yml' sudo npm install yaml
sudo npm install dotenv sudo npm install dotenv
sudo npm install fs sudo npm install fs
sudo npm install request sudo npm install request
@ -70,7 +70,7 @@ fi
# Erstellen Sie ein Startskript für den Bot # Erstellen Sie ein Startskript für den Bot
echo -e "Creating start script..." echo -e "Creating start script..."
echo -e "#!/bin/bash\n\npm2 start plex-bot.js" > start_bot.sh # Hier Dateinamen anpassen echo -e "#!/bin/bash\n\npm2 start plex-bot.js" > start_bot.sh
chmod +x start_bot.sh chmod +x start_bot.sh
# Erstellen Sie ein Autostart-Skript für den Bot # Erstellen Sie ein Autostart-Skript für den Bot