database = "db" base_url = "https://setbac.tv" [session] secret = "RANDOM_DATA" [oauth2] redirect_path = "api/auth/redirect" [oauth2.login] id = "login" type = "twitch" title = "Twitch Login" description = "This connection enables logging in through Twitch." client_id = "TWITCH_CLIENT_ID" client_secret = "TWITCH_CLIENT_SECRET" auth_url = "https://id.twitch.tv/oauth2/authorize" token_url = "https://id.twitch.tv/oauth2/token" [[oauth2.flows]] id = "twitch-streamer" type = "twitch" title = "Twitch Streamer" description = "The account which we are streaming for." client_id = "TWITCH_STREAMER_CLIENT_ID" client_secret = "TWITCH_STREAMER_CLIENT_SECRET" auth_url = "https://id.twitch.tv/oauth2/authorize" token_url = "https://id.twitch.tv/oauth2/token" scopes = [ # Receive chat messages. "chat:read", # Send chat messages. "chat:edit", # Perform moderator actions in channel. "channel:moderate", # POST /clips "clips:edit", # GET /bits/leaderboard "bits:read", # GET /subscriptions/user "channel:read:subscriptions", # GET channel_points "channel:read:redemptions", # PATCH /channel_points/custom_rewards "channel:manage:redemptions", # GET /chat/chatters "moderator:read:chatters", # GET /channels/vips "channel:read:vips", # GET /moderation/moderators "moderation:read", ] [[oauth2.flows]] id = "twitch-bot" type = "twitch" title = "Twitch Bot" description = "The account which is used for the bot who joins the chat. Connecting this will always force re-verification." client_id = "TWITCH_BOT_CLIENT_ID" client_secret = "TWITCH_BOT_CLIENT_SECRET" auth_url = "https://id.twitch.tv/oauth2/authorize" token_url = "https://id.twitch.tv/oauth2/token" scopes = [ # Receive chat messages. "chat:read", # Send chat messages. "chat:edit", ] extra_params = {force_verify = "true"} [[oauth2.flows]] id = "spotify" type = "spotify" title = "Spotify" description = "This connection enables Spotify song requests." client_id = "SPOTIFY_CLIENT_ID" client_secret = "SPOTIFY_CLIENT_SECRET" auth_url = "https://accounts.spotify.com/authorize" token_url = "https://accounts.spotify.com/api/token" scopes = [ "user-read-email", "user-read-private", "playlist-read-collaborative", "playlist-read-collaborative", "playlist-read-private", "user-library-read", "user-modify-playback-state", "user-read-playback-state", ] [[oauth2.flows]] id = "youtube" type = "youtube" title = "YouTube" description = "This connection enables YouTube song requests." client_id = "YOUTUBE_CLIENT_ID" client_secret = "YOUTUBE_CLIENT_SECRET" auth_url = "https://accounts.google.com/o/oauth2/v2/auth" token_url = "https://www.googleapis.com/oauth2/v4/token" scopes = [ "https://www.googleapis.com/auth/youtube.readonly", ] extra_params = {access_type = "offline", prompt = "consent"} [[oauth2.flows]] id = "nightbot" type = "nightbot" title = "Nightbot" description = "This connection enables the bot to send messages through Nightbot, instead of through the bot account." client_id = "NIGHTBOT_CLIENT_ID" client_secret = "NIGHTBOT_CLIENT_SECRET" auth_url = "https://api.nightbot.tv/oauth2/authorize" token_url = "https://api.nightbot.tv/oauth2/token" scopes = [ "channel_send", ]