How do I get the message after a command?

var NAME = 'whatever';

whatever can be passed in from another function/variable whatever

In your code NAME is cast outside of the client.on('messsage'

So I’m where is NAME supposed to come from? Whats the chat input and expected chat output?