just set it as
alias botking { set %botking $1 | echo -a BotKing Is Now $1 }
then you can use
if ($nick == %botking) {