This is my code for livescript:
if (res = json.msg.match /^iSearchup\s(.*)$/i)? then
getReq("[url='http://urbanscraper.herokuapp.com/define/'][http://urbanscraper.herokuapp.com/define/[/url]" + encodeURIComponent(msg.splice(1, msg.length - 1).join(" ")) + ".json", function(res, passback)
if (res.word && res.definition){
@socket.send JSON.stringify {
type: \pmsg
nick: 'iPoddy:'
msg: json.from + ": " + res.word + " - " + res.definition
}
}
else {
@socket.send JSON.stringify {
type: \pmsg
nick: 'iPoddy:'
msg: json.from + ": Sorry, no results were returned."
}
}
That is my code. It gave me the error "dedent" but I fixed it and it still give me that error again. Help?