From 257d84311a1f9740c68eb77ce43d8c333a2e3d0f Mon Sep 17 00:00:00 2001 From: Interitio Date: Sat, 1 Nov 2025 05:32:32 +1000 Subject: [PATCH] Add required scopes. --- src/constants.py | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/src/constants.py b/src/constants.py index 26ae468..0e5daca 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,22 +1,26 @@ from twitchio import Scopes -CONFIG_FILE = 'config/bot.conf' +CONFIG_FILE = "config/bot.conf" -SCHEMA_VERSIONS = { - 'ROOT': 1, - 'TWITCH_AUTH': 1 -} +SCHEMA_VERSIONS = {"ROOT": 1, "TWITCH_AUTH": 1} # Requested scopes for the bots own twitch user -BOTUSER_SCOPES = Scopes(( - Scopes.user_read_chat, - Scopes.user_write_chat, - Scopes.user_bot, - Scopes.channel_bot, -)) +BOTUSER_SCOPES = Scopes( + ( + Scopes.user_read_chat, + Scopes.user_write_chat, + Scopes.user_bot, + Scopes.channel_bot, + ) +) # Default requested scopes for joining a channel -CHANNEL_SCOPES = Scopes(( - Scopes.channel_bot, -)) +CHANNEL_SCOPES = Scopes( + ( + Scopes.channel_bot, + Scopes.user_read_chat, + Scopes.user_write_chat, + Scopes.moderator_manage_chat_messages, + ) +)