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 11#! /bin/bash
22
3+ function hzline() {
4+ printf ' %*s\n' " ${COLUMNS:- $(tput cols)} " ' ' | tr ' ' - ;
5+ }
6+
37# Check if Docker is installed
48if ! [ -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
711fi
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 &&
1218echo
1319
1420# Function to check for empty or invalid inputs for required keys
@@ -32,7 +38,9 @@ while true; do
3238done
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 &&
3644read -p " Please enter your Perplexity API key (optional): " PERPLEXITY_API_KEY
3745read -p " Please enter your OpenWeatherMap API key (optional): " OPENWEATHERMAP_API_KEY
3846read -p " Please enter your WeatherAPI key (optional): " WEATHERAPI_KEY
You can’t perform that action at this time.
0 commit comments