the point of trivia is to provide a challenge between a group of people, a source of entertainment. any cheating/auto answering ruins that and it's pretty obvious if someone uses a script to reply automatically anyway. but, if using this makes people have fun then so be it
on *:TEXT:*:#: { if ($read(scripts\trivia\answer.txt,w,$+(*,$1-,*)) != $null) { msg # $gettok($read(scripts\trivia\answer.txt,$readn),2,45) } } no need to add $mircdir as if you dont provide a filepath it just reads from $mircdir anyway.....