Change this part
%x = $?=\"Enter #Channel(s) separated with a space (Where you don\'t want your messages to be sent):\"
to
%x = #chan1 #chan2 #chan3
^^this way, it won\'t prompt you to enter the channels.