Open BluesBroBo opened 1 year ago
This is related to https://discuss.dev.twitch.tv/t/deprecation-of-chat-commands-through-irc/40486, i.e. the deprecation of IRC chat commands. This is quite unfortunate, as I am not sure if I'll have the time to commit to smoothly updating this soon.
An easy workaround for the time being is to comment away: https://github.com/tomaarsen/TwitchMarkovChain/blob/f994465f0f5c9304ebb9830926f3df130cf9643a/MarkovChainBot.py#L87
But there are some deeper issues as well, for example that the whisper function no longer works: https://github.com/tomaarsen/TwitchWebsocket/issues/3
Unfortunately, this deprecation means the only real way to acquire a list of moderators would be to pull them from the API via GET to https://api.twitch.tv/helix/moderation/moderators, which requires a Client ID and an OAuth user access token.
It's possible to work around this by manually adding a list of authorised users to "AllowedUsers"
in settings.json, but you'd need to do so again if a moderator is ever added or removed from the list.
Theoretically it might be possible to load the required access keys from settings.json and require the end user to provide their own Client ID, but it's up to you what approach you want to take if you get around to implementing a fix for this.
Since some time now (I believe it can't be more than a few weeks) the bot seems to have problems fetching the mod list, Resulting in an error. Sometimes it runs afterwards anyway (see second picture), but sometimes it just ends in an error.