twitch addon

This commit is contained in:
Tabby 2025-04-21 00:17:07 +10:00
parent 2cd7af98a1
commit 07de7179c9
254 changed files with 18420 additions and 1 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://hdhykj7h2whs

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://6085ijue6r62

View file

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

View file

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