You have used 'set' twice..
set set %Nick $$?="Please enter the bots main nick."
Add a timer with an -u switch..
ban %channel $nick 300
Add a -k switch to perform a kickban..
.timer 1 4 ban %channel $nick
.timer 1 3 Kick %channel $nick
You want to reconnect the server after 60 seconds? Silence timer(s)...
on *:disconnect:%network:{
timer 1 60 server %network
}