Hmm… The readfile function itself does just print the text directly, it doesn’t parse the variables. I think this was discussed recently and the devs were going to look at it, but that’s not current.
For the example you described, using the targeted kill command would cover exactly what you’ve described. The (random) in a custom command will actually pick a different random user each time, so you’d likely end up with one user in the fryer, and another user’s body breaking down.
At this point, unless you’re willing/able to repurpose the
!kill script to your needs, I think that you’ll either need to wait to see if the devs are able to nest variable parsing within the readfile variable, or write your own script. Unfortunately, I don’t think this is otherwise possible with the vanilla bot at the moment.