Removing null from uncomplete command

i wanted to add the command !multi http://multitwitch.tv/$(1)/$(2)/$(3)
if we try to command “”!multi user user " and leave the third argument empty, it will turn into !multi http://multitwitch.tv/user/user/null
how can we remove the null? and leave it blank?

This command will accept any number of channels and will remove @ from channel names in case you use that character to mention a channel.

!editcom !multi $(eval s=decodeURIComponent("$(querystring)").replace(/@/g,"").split(" ").filter(c=>c.length).map(c=>encodeURIComponent(c));s.length?"http://multitwitch.tv/"+s.join("/"):"No channels")

that works perfectly… thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.