If statements and square brackets in a bash function
I want to create this bash function as an alias in .zshrc to play Twitch channels with MPV from the terminal, but it gives me errors related to if statements and square brackets. The function requires the user to enter one ($1, channel number in the array) or two arguments ($2, d to see the channel live).