is it possible to make nightbot greeting my YT stream viewers like this :
when they said “hello” or “hello guys”, nightbot will answer “thank you [user], welcome to my stream”.
when they said “hello host”, nightbot will answer "welcome to my stream , Guys please connect to [user] channel at [user] channel at https://www.youtube.com/channel/[userid].
when they said “hello” to another viewers, nighbot will ignoring it.
im trying already but always failed
this is a command i copied from nightbot forum
hello $(eval if ($(query)){$(query).toLowerCase() == “host” ? $(user) : $(query)}else{“guys”}), welcome to the stream!
The issue is due to the character limit on YouTube, which is 250.
Here’s the same command (I also added the test for “hello” alone), but shortened so you should be able to add it without issue:
!addcom hello $(eval q=`$(1)`; q==`guys`||q==`null`?`Thank you $(user), welcome to my stream!`:q==`host`?`Welcome to my stream, guys please connect to $(user)'s channel at https://www.youtube.com/channel/$(userid)`:` `)