-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaura_cmd.sh
executable file
·39 lines (36 loc) · 1.07 KB
/
aura_cmd.sh
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
#!/bin/zsh
# Source the functions
source /home/dizziedbliss/CODE/aura/aura_fns.sh
# Function to listen for user input and act like an AI
listen_for_commands() {
while true; do
echo -n "Your command, Master: " # Prompt user for input
read -r input # Capture user input
case "$input" in
"hello" | "hi")
greet ;;
"weather")
get_weather ;;
"play music" | "music")
play_music ;;
"disk usage" | "usage")
disk_usage ;;
"sys stats" | "system stats")
sys_stats ;;
"joke" | "tell me a joke")
tell_joke ;;
"time" | "current time")
get_time ;;
"calendar")
show_calendar ;;
"news")
get_news ;;
"exit")
echo "Goodbye, Master!" && break ;;
*)
echo "Sorry, I didn't understand: $input" ;;
esac
done
}
# Start the listener
listen_for_commands