2021-12-31 13:42:37 +01:00
|
|
|
package main
|
|
|
|
|
2022-11-02 22:38:14 +01:00
|
|
|
import "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
2021-12-31 13:42:37 +01:00
|
|
|
|
|
|
|
var (
|
2022-12-04 17:14:15 +01:00
|
|
|
channelExtendedScopes = map[string]string{
|
|
|
|
twitch.ScopeChannelEditCommercial: "run commercial",
|
|
|
|
twitch.ScopeChannelManageBroadcast: "modify category / title",
|
|
|
|
twitch.ScopeChannelManagePolls: "manage polls",
|
|
|
|
twitch.ScopeChannelManagePredictions: "manage predictions",
|
|
|
|
twitch.ScopeChannelManageRaids: "start raids",
|
|
|
|
twitch.ScopeChannelManageVIPS: "manage VIPs",
|
2023-10-21 16:43:44 +02:00
|
|
|
twitch.ScopeChannelReadAds: "see when an ad-break starts",
|
2024-02-29 19:00:44 +01:00
|
|
|
twitch.ScopeChannelReadHypetrain: "see Hype-Train events",
|
2022-12-04 17:14:15 +01:00
|
|
|
twitch.ScopeChannelReadRedemptions: "see channel-point redemptions",
|
2023-04-22 22:23:35 +02:00
|
|
|
twitch.ScopeChannelReadSubscriptions: "see subscribed users / sub count / points",
|
2023-08-14 02:52:51 +02:00
|
|
|
twitch.ScopeClipsEdit: "create clips on behalf of this user",
|
2023-02-04 12:25:46 +01:00
|
|
|
twitch.ScopeModeratorReadFollowers: "see who follows this channel",
|
2023-03-21 10:51:34 +01:00
|
|
|
twitch.ScopeModeratorReadShoutouts: "see shoutouts created / received",
|
2023-09-13 22:41:46 +02:00
|
|
|
twitch.ScopeUserManageWhispers: "send whispers on behalf of this user",
|
2022-04-23 17:24:49 +02:00
|
|
|
}
|
|
|
|
|
2022-12-04 17:14:15 +01:00
|
|
|
botDefaultScopes = []string{
|
|
|
|
// API Scopes
|
2022-10-25 18:47:30 +02:00
|
|
|
twitch.ScopeModeratorManageAnnoucements,
|
|
|
|
twitch.ScopeModeratorManageBannedUsers,
|
|
|
|
twitch.ScopeModeratorManageChatMessages,
|
|
|
|
twitch.ScopeModeratorManageChatSettings,
|
2023-02-04 13:59:18 +01:00
|
|
|
twitch.ScopeModeratorManageShieldMode,
|
2023-01-20 12:13:59 +01:00
|
|
|
twitch.ScopeModeratorManageShoutouts,
|
2023-09-29 14:54:24 +02:00
|
|
|
twitch.ScopeModeratorReadFollowers,
|
2022-12-04 17:14:15 +01:00
|
|
|
|
|
|
|
// Chat Scopes
|
|
|
|
twitch.ScopeChatEdit,
|
|
|
|
twitch.ScopeChatRead,
|
2021-12-31 13:42:37 +01:00
|
|
|
twitch.ScopeWhisperRead,
|
2022-12-04 17:14:15 +01:00
|
|
|
}
|
2021-12-31 13:42:37 +01:00
|
|
|
)
|