Made a twitch stream checker, any advice/improvements?

I do plan on adding streamer icons to the notification so stay tuned if you want such a feature.

#!/bin/bash
sloc="$(dirname "$(readlink -f $0)")"
if ! grep -q "busy" "$sloc/$1prog_state.txt"; then
  echo "busy" >> "$sloc/$1prog_state.txt"
  wget "https://twitchtracker.com/$1" -O "$sloc/$1streamer.html"
  if grep -q 'LIVE</span>' "$sloc/$1streamer.html"; then
    if ! grep -q "$(date '+%j')" "$sloc/$1stream_state.txt"; then
      if [ "$(notify-send "$1 is online!" "https://www.twitch.tv/$1/" -u CRITICAL -a "$1-detector" -A 'Open Stream' -A 'Nope')" -eq '0' ]; then
        xdg-open "https://www.twitch.tv/$1/"
      fi
      rm "$sloc/$1stream_state.txt"
      echo "$(date '+%j')" >> "$sloc/$1stream_state.txt"
      fi
  else
    echo 'No stream, exiting.'
  fi
  rm "$sloc/$1streamer.html"
fi
rm "$sloc/$1prog_state.txt"