I can’t make nightbot respon to how old are you but he can respond if i remove the spaces what the viewer won’t say howoldareyou! Can i do something for that ?
2 replies
Tranquil Turtle
No, nightbot will only respond to the first word - it isn't a keyword based system, just a "without a prefix" system.
Polar Cat
Hey @Mossy Lobster!
The solution to this is to create a how command and check for the content following the trigger word, aka the query, so here's how to do it in your case:
!addcom how $(eval `$(query)`.toLowerCase().includes(`old are you`)?`YOUR_AGE_TEXT`:` `;)