tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.55k stars 215 forks source link

Log "error: msg_banned" #560

Closed MrAmericanMike closed 3 hours ago

MrAmericanMike commented 3 hours ago

Actual behaviour:

When joining to a channel where the account used is banned, the console will log something like:

[21:14] error: msg_banned

Expected behaviour: Either being able to disable those messages, looks like having options: { debug: false }, doesn't do it. Or even better, a more informative message specifying which of the channels we joined is causing that message, it's clear that we are banned in some channel for that message to show up, but there is no way to know which one it is.

Error log:

[21:14] error: msg_banned

Configuration

MrAmericanMike commented 3 hours ago

Ok, turns out enabling debug info helps us in this case and we get a log about where the issue is:

[21:56] info: [#channel_name] You are permanently banned from talking in channel_name.
[21:56] error: msg_banned

I guess the solution is then enabling debugging to do this cleanup and then disable it again.