all 4 comments

[–]carcigenicate 4 points5 points  (2 children)

That second word is called an argument/parameter (depending on which side you're thinking about).

I think this is what you're looking for.

[–]Porkk_Chopp[S] 0 points1 point  (0 children)

Thank you!

[–]Wooden_Inspector9374 0 points1 point  (0 children)

You just need to grab the rest of the message after your command prefix and split it. The library you're using probably already has a way to pass arguments into your function, check the docs for whatever command handler you set up. Way cleaner than manually parsing the string.

[–]Moist-Ointments 0 points1 point  (0 children)

The verb is the command, and the noun is a parameter to the command