I own a node twitch bot and I want to make it so a mod can do !timeout @(user)
to set the timeout of the chatter for 600 seconds. How can this be done?
Here is some code I have so far:
client.on("message", (channel, user, message, self) => {
if (self) return;
if(message === "!timeout" && user.mod === true){
client.say (channel, `/timeout @${user.id} 100000`);
}
});