A streamer I mod for wants a command set up to where when somebody says a specific name, nightbot responds with a phrase.
for example:
Viewer: :“blah blah blah Charlie.”
Nightbot: “you must donate such and such amount of money before I answer that question.”
Emily
November 23, 2020, 2:38pm
2
Hey @wasonjar !
If you want Nightbot to detect a specific word that could be anywhere in a sentence, this isn’t possible.
If you want Nightbot to detect a specific sentence, you can do so like this:
!addcom FIRST_WORD_OF_THE_SENTENCE $(eval `$(query)`.includes(`REST_OF_THE_SENTENCE`)?`RESPONSE`:` `;)
1 Like
Thank you. This worked perfectly.
The only issue i had was you entered an extra : at the end but it was an easy fix.
1 Like
Emily
November 24, 2020, 9:57am
4
Oh, my bad, it was meant to be a ;
(semi-colon)…
Same key, I must have been pressing Shift
.
Hi,
Can i add some how to response message the name of user that i response to ?
I mean if “someone” write in chat “Hello” the Nightbot will response “Hello @someone ”
@constafun Heya,
!addcom -cd=5 hello Hello @$(user)
Regards
Ritik_Ranjan:
-cd=5
Tnx,
what the meaning of “-cd=5” ?
@constafun That’s cooldown, by default adding commands via YouTube Live chat cooldown will be of 30 seconds. 5 seconds is minimum cool down you can set.
Regards
1 Like
system
Closed
December 11, 2020, 6:21am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.