generated from HoloTech/twitch-bot-template
Add required scopes.
This commit is contained in:
@@ -1,22 +1,26 @@
|
|||||||
from twitchio import Scopes
|
from twitchio import Scopes
|
||||||
|
|
||||||
|
|
||||||
CONFIG_FILE = 'config/bot.conf'
|
CONFIG_FILE = "config/bot.conf"
|
||||||
|
|
||||||
SCHEMA_VERSIONS = {
|
SCHEMA_VERSIONS = {"ROOT": 1, "TWITCH_AUTH": 1}
|
||||||
'ROOT': 1,
|
|
||||||
'TWITCH_AUTH': 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Requested scopes for the bots own twitch user
|
# Requested scopes for the bots own twitch user
|
||||||
BOTUSER_SCOPES = Scopes((
|
BOTUSER_SCOPES = Scopes(
|
||||||
|
(
|
||||||
Scopes.user_read_chat,
|
Scopes.user_read_chat,
|
||||||
Scopes.user_write_chat,
|
Scopes.user_write_chat,
|
||||||
Scopes.user_bot,
|
Scopes.user_bot,
|
||||||
Scopes.channel_bot,
|
Scopes.channel_bot,
|
||||||
))
|
)
|
||||||
|
)
|
||||||
|
|
||||||
# Default requested scopes for joining a channel
|
# Default requested scopes for joining a channel
|
||||||
CHANNEL_SCOPES = Scopes((
|
CHANNEL_SCOPES = Scopes(
|
||||||
|
(
|
||||||
Scopes.channel_bot,
|
Scopes.channel_bot,
|
||||||
))
|
Scopes.user_read_chat,
|
||||||
|
Scopes.user_write_chat,
|
||||||
|
Scopes.moderator_manage_chat_messages,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user