So I’ve been working on my chat bot for about a week now and I finally got the shout out command to work but I want to make it so it’s user specific.
This is my current code
case '!shout':
client.say(channel, target, `${userstate['display-name']} got a shout out, Go check them out and follow to see when they go live over at twitch.tv/${userstate['display-name']}`);
break;
but how I want it to read would be this.
case '!shout && userstate.id':
client.say(channel, target, `${userstate['display-name']} got a shout out, Go check them out and follow to see when they go live over at twitch.tv/${userstate['display-name']}`);
break;
essentially making it so whoever is tagged in the command it will shout out that user. Hope this made sense and doesn’t sound stupid. Thanks for reading.