Get username in Twitchdevs Bot Tutorial

Hey @RealKozie,

What you’re looking for is USERSTATE (https://dev.twitch.tv/docs/irc/tags#userstate-twitch-tags) which will return 1 for Mod and 0 if they’re not a Mod. As far as how to implement this following the tutorial I’m not in an environment to be able to test, but you’ll actually want to work beyond the message handler and in the commands context where target will be the user who executed the command.

So check if target has a value of 1 for Mod.