File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ function hzline() {
4
+ printf ' %*s\n' " ${COLUMNS:- $(tput cols)} " ' ' | tr ' ' - ;
5
+ }
6
+
3
7
# Check if Docker is installed
4
8
if ! [ -x " $( command -v docker) " ]; then
5
9
echo ' Error: Docker is not installed. Please install Docker first: https://www.docker.com/get-started/' >&2
6
10
exit 1
7
11
fi
8
12
9
13
# 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 &&
12
18
echo
13
19
14
20
# Function to check for empty or invalid inputs for required keys
@@ -32,7 +38,9 @@ while true; do
32
38
done
33
39
34
40
# 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 &&
36
44
read -p " Please enter your Perplexity API key (optional): " PERPLEXITY_API_KEY
37
45
read -p " Please enter your OpenWeatherMap API key (optional): " OPENWEATHERMAP_API_KEY
38
46
read -p " Please enter your WeatherAPI key (optional): " WEATHERAPI_KEY
You can’t perform that action at this time.
0 commit comments