!PRE
public text v1 · immutableon $*:text:/!pre/g:#-=DEDI=-: {
if ( !$2 ) {
msg $chan USAGE: !pre exact.release.name.s01e01.hdtv.xvid-group
halt
}
else {
var %rlsname = $2
tokenize 32 $read( db.txt, st, %rlsname )
if ( !$1 ) {
msg $chan NO RESULTS FOUND }
else {
var %duratime = $duration($calc($ctime - $1), 2)
var %pretime = $asctime($1,h:nn:ss tt)
msg $chan RELEASE FOUND: %rlsname was released %duratime ago, at %pretime
}
}
}