Specific responses to specific words

Hey community, how are you all?
I was wondering if I can create a command without the [!].
My example is for Hearthstone.
When someone says: “Priest is cancer”.
I was wondering if Nighbot can answer:
“This is an advice, next time is a ban”.
But not if person says only “Priest” or “Cancer”.

Hey @loldest159!

Yes, it’s possible:

!addcom priest $(eval q=decodeURIComponent(`$(querystring)`).toLowerCase();q.includes(`cancer`)?`This is an advice, next time is a ban.`:` `)
1 Like

Thanks for the help <3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.