-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterm-chat
More file actions
executable file
·52 lines (45 loc) · 2.17 KB
/
term-chat
File metadata and controls
executable file
·52 lines (45 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
# This Program makes you chat with any one who joins this server.
# Abdisa Dev
echo "
████████╗███████╗██████╗ ███╗ ███╗ ██████╗██╗ ██╗ █████╗ ████████╗
╚══██╔══╝██╔════╝██╔══██╗████╗ ████║ ██╔════╝██║ ██║██╔══██╗╚══██╔══╝
██║ █████╗ ██████╔╝██╔████╔██║█████╗██║ ███████║███████║ ██║
██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║╚════╝██║ ██╔══██║██╔══██║ ██║
██║ ███████╗██║ ██║██║ ╚═╝ ██║ ╚██████╗██║ ██║██║ ██║ ██║
╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝
"
echo -e "\t\t\t\t\e]8;; https://abdiza.tech \a Abdiza Dev\e]8;;\a\n"
red='\033[1;31m'
green='\033[1;32m'
yellow='\033[0;33m'
blue='\033[7;35m'
blue_normal='\033[1;35m'
reset='\033[0m'
while true
do
echo -e "${green}0. Start Chat${reset}"
echo -e "${red}1. Exit \n${reset}"
echo -en "${blue}Enter Your Choice Here:${reset} "
read Input
echo
if [ "$Input" -eq 0 ]; then
echo -en "${blue}Enter Your Name:${reset} "
read Name
echo
fi
case "$Input" in
0)
echo -e "Hey ${yellow}$Name${reset} Please Be Patient Until We Establish The Connection . . .\n"
# Temporary TCP Socket
exec nc 0.tcp.in.ngrok.io -q 5 10954
;;
1)
echo -e "${yellow}-> Bye :(\n${reset}"
break
;;
*)
echo -e "${red}-> Bad Input, Please Try Again!\n${reset}"
;;
esac
done