On QUIT only triggers after you actually quit.

If you want to script your own custom/ random quit message, your best bet is to place a custom identifier into your Quit Message field under IRC > Messages.
Put this code in your Aliases or Remotes:

Alias QuitMsg {
  return $read -n quitmsg.txt

Then use $quitmsg as your Quit Message.
Alternatly, you could simply put $read -n quitmsg.txt as your Quit Message, too.

- Raccoon

Well. At least I won lunch.
Good philosophy, see good in bad, I like!