Skip to content

Commit c74d5a4

Browse files
committed
Docker build files & setup
1 parent decbfc6 commit c74d5a4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docker_setup.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
#!/bin/bash
22

3+
function hzline() {
4+
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - ;
5+
}
6+
37
# Check if Docker is installed
48
if ! [ -x "$(command -v docker)" ]; then
59
echo 'Error: Docker is not installed. Please install Docker first: https://www.docker.com/get-started/' >&2
610
exit 1
711
fi
812

913
# Welcome Message
10-
echo "Welcome to the TelegramBot-OpenAI-API setup."
11-
echo "Source code: https://github.com/FlyingFathead/TelegramBot-OpenAI-API/"
14+
hzline &&
15+
echo "Welcome to the TelegramBot-OpenAI-API setup." &&
16+
echo "Source code: https://github.com/FlyingFathead/TelegramBot-OpenAI-API/" &&
17+
hzline &&
1218
echo
1319

1420
# Function to check for empty or invalid inputs for required keys
@@ -32,7 +38,9 @@ while true; do
3238
done
3339

3440
# Prompt for optional API keys (user can leave them blank)
35-
echo "Below are optional keys for the bot's supported API functionalities that you can add in, or just press ENTER to leave them blank."
41+
hzline &&
42+
echo "Below are optional keys for the bot's supported API functionalities that you can add in, or just press ENTER to leave them blank." &&
43+
hzline &&
3644
read -p "Please enter your Perplexity API key (optional): " PERPLEXITY_API_KEY
3745
read -p "Please enter your OpenWeatherMap API key (optional): " OPENWEATHERMAP_API_KEY
3846
read -p "Please enter your WeatherAPI key (optional): " WEATHERAPI_KEY

0 commit comments

Comments
 (0)