#!/bin/bash

# Let's have some fun!

# Print an insane ASCII art of a cat
echo "Here's a crazy cat for you!"
cat << "EOF"
  /\_/\  
 ( o.o ) 
  > ^ <
EOF

# Have the terminal randomly print "HELLO WORLD!" in different colors
echo "Spreading some colorful vibes..."
for i in {1..5}; do
  echo -e "\e[38;5;$((RANDOM % 256))mHELLO WORLD!\e[0m"
  sleep 0.5
done

# Make the terminal beep randomly
echo "Preparing to beep randomly..."
for i in {1..5}; do
  if ((RANDOM % 2 == 0)); then
    echo -e "\a"
  fi
  sleep 1
done

# Randomly change the prompt to confuse the user
PROMPT=$((RANDOM % 2))
if [ $PROMPT -eq 0 ]; then
  export PS1="[\u@\h \w]$ "
else
  export PS1="[\u@\h \W]# "
fi

# Launch a terminal dancing animation
echo "Now, let's dance! 💃"
for i in {1..10}; do
  echo -e "\e[H\e[2J" # Clear the terminal
  echo "💃  Dancing..."
  sleep 0.5
done

# Scrolling random "motivational" quotes
echo "Just a little motivation to get through your day..."
quotes=("You can do it!" "Go for it!" "Keep going!" "Stay awesome!" "Don't stop!")
for i in {1..10}; do
  echo "${quotes[$((RANDOM % ${#quotes[@]}))]}"
  sleep 1
done

# Ending the script in a wild way
echo "Alright, enough chaos for now... but just wait..."
sleep 2
echo "Did you know? I can pretend to be a fortune teller."
sleep 1
echo "I predict... the terminal will close soon. 👀"
sleep 2
exit