could create a function to do the repetitive code of:
...
if {$page == "timeout" || $page == ""} { tv:send $chan "TVRage has timed out. Please try again in a few minutes"
} elseif {$page == 0} { tv:send $chan "TVRage services are currently down"
} else { tv:info $page
if {![info exists tv(show)]} { tv:send $chan "No Such Show!"
} else {
...