Yeah it’s actually my bad, looking at wrong lines of code.
What actually changed is this
case "CLEARCHAT":
// User has been banned / timed out by a moderator..
if(message.params.length > 1) {
// Duration returns null if it's a ban, otherwise it's a timeout..
var duration = _.get(message.tags["ban-duration"], null);
if(_.isNull(duration)) {
this.log.info(`[${channel}] ${msg} has been banned.`);
this.emit("ban", channel, msg, null, message.tags);
}
else {
this.log.info(`[${channel}] ${msg} has been timed out for ${duration} seconds.`);
this.emit("timeout", channel, msg, null, ~~duration, message.tags);
}
}
In tmi.js it was client.on(“timeout”) and bot was actually able to see timeouts and bans in the room. And now i should implement this through eventsub?