How make command for answer with nightbot?

Asked Jan 9, 2020·1 reply·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

i know i can use word and bot answer after someone writing this word. is possable use 2 or more words for command? when use"hi" bot answer "hello or wellcome". but i want use "Hi bro" and is take only first word and no phrase (combination of words) how i can make it working?

1 reply

Hiya, Nightbot will only trigger on the first word. However you can use the $(eval) function to check the second word the user typed.

Something liket his,
!commands add -cd=5 hi $(eval '$(1)'=='bro' ? 'Hi bro response':' ')