One issue I see, is you need to move an } that is after the else, to before it.
on *:text:!subs:#:{
if ($nick == ravelux) {
var %read $read(subcount.txt,n)
msg $chan Test: %read
}
else { msg $nick Nope! }
}
Notice how the if/else line up now? I assume this is the issue you are having, unless you have some other issue?