54 lines
775 B
Bash
Executable File
54 lines
775 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# Colors
|
|
RED='\033[0;31m'
|
|
LRED="\033[1;31m"
|
|
BLUE="\033[0;34m"
|
|
LBLUE="\033[1;34m"
|
|
GREEN="\033[0;32m"
|
|
LGREEN="\033[1;32m"
|
|
YELLOW="\033[1;33m"
|
|
CYAN="\033[0;36m"
|
|
LCYAN="\033[1;36m"
|
|
PURPLE="\033[0;35m"
|
|
LPURPLE="\033[1;35m"
|
|
BWHITE="\e[1m"
|
|
NC='\033[0m' # No Color
|
|
|
|
VOICEON="false"
|
|
|
|
|
|
#VoicControl (){
|
|
if [ "${VOICEON}" = "true" ];then
|
|
MODE="espeak"
|
|
elif [ "${VOICEON}" = "false" ];then
|
|
MODE="echo"
|
|
fi
|
|
#}
|
|
|
|
printf "${LBLUE}What is the name of person 1?:${NC} "
|
|
read person1
|
|
|
|
${MODE} "${person1} Joined the chat"
|
|
|
|
|
|
printf "${LPURPLE}What is the name of person 2?:${NC} "
|
|
read person2
|
|
|
|
${MODE} "${person2} joined the chat"
|
|
while true;do
|
|
|
|
|
|
|
|
|
|
printf "${LGREEN}${person1}:${NC} "
|
|
read something1
|
|
|
|
|
|
|
|
printf "${YELLOW}${person2}:${NC} "
|
|
read something2
|
|
|
|
done
|