How do I get the message after a command?

Okay let me explain this better.
I need the variable NAME to change with

client.on(‘message’, (channel, userstate, message, self)

Someone will type the command !bedkills TheirName

I need the variable NAME to change to TheirName

This will change it on the message that is sent in twitch chat and the variable that the hypixel library needs.

What I don’t know how to do is isolate “theirName” from the chat command and how to set it as a variable that I can use.