Ajout de l'addon twitch

This commit is contained in:
2026-06-23 23:28:12 +02:00
parent 5bdf8db609
commit 4f93f7acaf
48 changed files with 1893 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class_name VSTChatter
var date_time_dict: Dictionary
var login: String
var channel: String
var message: String
var tags: VSTIRCTags
func is_mod() -> bool:
return tags.badges.has("moderator")
func is_sub() -> bool:
return tags.badges.has("subscriber")
func is_broadcaster() -> bool:
return tags.badges.has("broadcaster")

View File

@@ -0,0 +1 @@
uid://b5jggcdr67bax

View File

@@ -0,0 +1,13 @@
class_name VSTIRCTags
# Model for a IRC twitch chat
var color_hex: String # color of user used in twtich chat
var display_name: String # name of a user
var channel_id: String # not used
var user_id: String # numeric id of the user used in twitch
var badges: Dictionary # badges of the user in message
var emotes: Dictionary # emotes writed by user in message
func _to_string():
return "color_hex: %s, display_name: %s, channel_id: %s, user_id: %s, badges: %s, emotes: %s" % [color_hex, display_name, str(channel_id), str(user_id), badges, emotes]

View File

@@ -0,0 +1 @@
uid://dngsmhmc1s3ts

View File

@@ -0,0 +1,5 @@
class_name VSTChannel
var login: String
var id: String
var token: String

View File

@@ -0,0 +1 @@
uid://b5hhkjxmiuh35