How to make a team in two words?
For example: how are you
The bot replies: good
Team in two words
8 replies
Hey @Spiffy Rabbit!
I'm not sure I understand what you mean, if you want to have multiple tests done on q, use the logical operator || (OR).
For example:
!addcom hello $(eval q=decodeURIComponent(`$(querystring)`); q.includes(`all`)||q.includes(`everyone`)?`Hello $(user)`:` `;)
I'm afraid I can't offer better assistance without a clearer explanation of what you want.
This should do the trick:
!addcom hi $(eval q=`$(query)`.toLowerCase(); q.includes(`YOUR_USERNAME_IN_LOWER_CASE`)||q.includes(`nightbot`)?`Hi $(user)`:` `;)
Just replace YOUR_USERNAME_IN_LOWER_CASE, for example Bublik should be bublik in the command.
And if you want to have the bot reply for hello and hey as well, feel free to update the command, or to use alias commands, like so:
!addcom hello -a=hi $(query)!addcom hey -a=hi $(query)
Didn't find your answer? The community is on Discord.
Ask on Discord
