Bind Twitch Moderation Events Like Ban / Timeout


#1

Is it possible to bind to ban / timeout events from twitch chat in a custom script?

I tried ircModeration, PubSubModerationBan. and PubSubModerationTimeout but it doesn’t trigger any of those events when someone it timedout or banned.


#2

Hey there,

as of right now, these events are only fired if you have the toggle to show moderation events in discord enabled. If you do not use Discord, you can simply put this code in your script at the top, start PhantomBot, then it should enable those events for you. You can remove the code once you’ve started PhantomBot once.

$.inidb.set('chatModerator', 'moderationLogs', 'true');

Hope this helps!


#3

Perfect, thank you.