Code:
on *:TEXT:!item*:#:{
  if ( $read(items.txt,s,$$2-) != $null ) {
    msg # $read(items.txt,s,$$2-)
  }
}
 

Replace items.txt with the name of your text file.