You mean playing a file with the play command?
You could add the commands you want to play in the file and prefix the msg command with a fullstop (.).
Or do you mean when you manually type /msg ? If so, still prefix the command with a fullstop (.).
/.msg #lol text.