[gd_scene load_steps=22 format=3 uid="uid://b8whblp2hgrp"]

[ext_resource type="Script" uid="uid://6nrfqrw53c1s" path="res://Library/Singletons/Globals.cs" id="1_gsl6h"]
[ext_resource type="Script" uid="uid://i8st3lv0lidh" path="res://addons/twitcher/twitch_service.gd" id="1_ocehi"]
[ext_resource type="Script" uid="uid://dcrliedgr6eol" path="res://addons/twitcher/lib/oOuch/crypto_key_provider.gd" id="2_gsl6h"]
[ext_resource type="Script" uid="uid://00xbijwpi8xa" path="res://addons/twitcher/lib/oOuch/oauth_setting.gd" id="3_amvha"]
[ext_resource type="Script" uid="uid://b3n3et8mebjcc" path="res://addons/twitcher/auth/twitch_oauth_scopes.gd" id="4_fcooh"]
[ext_resource type="Resource" uid="uid://c4scwuk8q0r40" path="res://addons/twitcher/lib/oOuch/default_key_provider.tres" id="5_65rqk"]
[ext_resource type="Script" uid="uid://b52xp7c23ucfk" path="res://addons/twitcher/lib/oOuch/oauth_token.gd" id="6_lppa0"]
[ext_resource type="Script" uid="uid://cw30cwveway65" path="res://addons/twitcher/generated/twitch_api.gd" id="8_3e7ys"]
[ext_resource type="Script" uid="uid://blmhj3j00yk45" path="res://addons/twitcher/eventsub/twitch_eventsub.gd" id="9_qouv8"]
[ext_resource type="Script" uid="uid://d4lyup0vy1wtu" path="res://addons/twitcher/media/twitch_media_loader.gd" id="10_3qd2c"]
[ext_resource type="Texture2D" uid="uid://g1dbcjksbotw" path="res://addons/twitcher/assets/fallback_texture.tres" id="11_cw8vs"]
[ext_resource type="Script" uid="uid://cor04lg8wc05p" path="res://Library/Helpers/godotgif_loader.gd" id="12_3e7ys"]
[ext_resource type="Script" uid="uid://dcq1bvfrqimqq" path="res://addons/twitcher/chat/twitch_chat.gd" id="13_7pyia"]
[ext_resource type="Script" uid="uid://cnmohrdxqihr0" path="res://addons/twitcher/generated/twitch_user.gd" id="14_ai0at"]

[sub_resource type="Resource" id="Resource_54bgt"]
script = ExtResource("2_gsl6h")
encrpytion_secret_location = "user://encryption_key.cfg"

[sub_resource type="Resource" id="Resource_km1mv"]
script = ExtResource("3_amvha")
redirect_url = "http://localhost:7170"
well_known_url = ""
token_url = "https://id.twitch.tv/oauth2/token"
authorization_url = "https://id.twitch.tv/oauth2/authorize"
device_authorization_url = "https://id.twitch.tv/oauth2/device"
cache_file = "user://auth.conf"
client_id = "xqh437vs83im368db89iwflm130ufb"
authorization_flow = 0
_encryption_key_provider = SubResource("Resource_54bgt")
client_secret = "D8bwpU1vz2zu6P9l0D3ktvctJMCuFspuG//RPTsyP8w="

[sub_resource type="Resource" id="Resource_to4h6"]
script = ExtResource("4_fcooh")
used_scopes = Array[StringName]([&"moderation:read", &"user:bot", &"user:read:chat", &"user:write:chat", &"chat:edit", &"chat:read"])
metadata/_custom_type_script = "uid://b3n3et8mebjcc"

[sub_resource type="Resource" id="Resource_3e7ys"]
script = ExtResource("6_lppa0")
_crypto_key_provider = ExtResource("5_65rqk")
_identifier = "EditorToken"
_cache_path = "user://auth.conf"

[sub_resource type="Resource" id="Resource_qouv8"]
script = ExtResource("12_3e7ys")
fallback_texture = ExtResource("11_cw8vs")
metadata/_custom_type_script = "uid://cor04lg8wc05p"

[sub_resource type="Resource" id="Resource_3qd2c"]
script = ExtResource("14_ai0at")
id = "104753997"
login = "casperdragonwolf"
display_name = "CasperDragonWolf"
type = ""
broadcaster_type = "affiliate"
description = "I'm a hobbyist developer dealing in many different languages, currently using Godot and C# to build games, apps, and plugins.  I have a semi-decent library of games that I will occasionally play, and I just try to chill, and have fun!"
profile_image_url = "https://static-cdn.jtvnw.net/jtv_user_pictures/b2c4c6bb-9cb4-4433-b664-6431beb040c7-profile_image-300x300.png"
offline_image_url = "https://static-cdn.jtvnw.net/jtv_user_pictures/e80f180c-c6e6-4647-ae76-adb0fbe6c122-channel_offline_image-1920x1080.jpeg"
view_count = 0
email = ""
created_at = "2015-10-19T21:33:45Z"

[sub_resource type="Resource" id="Resource_cw8vs"]
script = ExtResource("14_ai0at")
id = "104753997"
login = "casperdragonwolf"
display_name = "CasperDragonWolf"
type = ""
broadcaster_type = "affiliate"
description = "I'm a hobbyist developer dealing in many different languages, currently using Godot and C# to build games, apps, and plugins.  I have a semi-decent library of games that I will occasionally play, and I just try to chill, and have fun!"
profile_image_url = "https://static-cdn.jtvnw.net/jtv_user_pictures/b2c4c6bb-9cb4-4433-b664-6431beb040c7-profile_image-300x300.png"
offline_image_url = "https://static-cdn.jtvnw.net/jtv_user_pictures/e80f180c-c6e6-4647-ae76-adb0fbe6c122-channel_offline_image-1920x1080.jpeg"
view_count = 0
email = ""
created_at = "2015-10-19T21:33:45Z"

[node name="Globals" type="Node"]
script = ExtResource("1_gsl6h")

[node name="TwitchService" type="Node" parent="."]
script = ExtResource("1_ocehi")
oauth_setting = SubResource("Resource_km1mv")
scopes = SubResource("Resource_to4h6")
token = SubResource("Resource_3e7ys")
metadata/_custom_type_script = "uid://i8st3lv0lidh"

[node name="TwitchAPI" type="Node" parent="TwitchService"]
script = ExtResource("8_3e7ys")
token = SubResource("Resource_3e7ys")
oauth_setting = SubResource("Resource_km1mv")
metadata/_custom_type_script = "uid://cw30cwveway65"

[node name="TwitchEventsub" type="Node" parent="TwitchService" node_paths=PackedStringArray("api")]
script = ExtResource("9_qouv8")
api = NodePath("../TwitchAPI")
scopes = SubResource("Resource_to4h6")
metadata/_custom_type_script = "uid://blmhj3j00yk45"

[node name="TwitchMediaLoader" type="Node" parent="TwitchService" node_paths=PackedStringArray("api")]
script = ExtResource("10_3qd2c")
api = NodePath("../TwitchAPI")
image_transformer = SubResource("Resource_qouv8")
metadata/_custom_type_script = "uid://d4lyup0vy1wtu"

[node name="TwitchChat" type="Node" parent="TwitchService" node_paths=PackedStringArray("media_loader", "eventsub", "api")]
script = ExtResource("13_7pyia")
broadcaster_user = SubResource("Resource_3qd2c")
sender_user = SubResource("Resource_cw8vs")
media_loader = NodePath("../TwitchMediaLoader")
eventsub = NodePath("../TwitchEventsub")
api = NodePath("../TwitchAPI")
subscribe_on_ready = false
metadata/_custom_type_script = "uid://dcq1bvfrqimqq"
