Hi.
i want to stop bot from responding to me on my channel..Could you please help me with a java script code for the same
Java script to stop bot from sending message
5 replies
@Coral Owl Well... You need to modify the commands.
$(eval "$(user)" === "YOU_USER_NAME" ? " " : "COMMAND_RESPONSE_HERE")
Suppose a normal !hi command.
!editcom -cd=5 !hi $(eval "$(user)" === "Ritik_Ranjan" ? " " : "Hi $(user)")
It should work something like this:
Ritik: !hiABC: !hiNighbot: Hi ABC
Regards
This solution would work on Twitch due to the inability to post just a space as a message. However this restriction doesn't exist on Youtube gaming as you can see.
I was able to create a message that couldn't send with a Zero Width Space, so you're response can just return one. Easy Copy Paste Link
Something like this:
$(eval "$(user)" === "aaron128l" ? "" : "COMMAND_RESPONSE_HERE")
Yes there is a space in between "" you can tell if you copy and paste it and try to navigate with your arrow keys.

Didn't find your answer? The community is on Discord.
Ask on Discord