twitch addon
This commit is contained in:
parent
2cd7af98a1
commit
07de7179c9
254 changed files with 18420 additions and 1 deletions
19
addons/very-simple-twitch/models/chatter.gd
Normal file
19
addons/very-simple-twitch/models/chatter.gd
Normal 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")
|
||||
1
addons/very-simple-twitch/models/chatter.gd.uid
Normal file
1
addons/very-simple-twitch/models/chatter.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://hdhykj7h2whs
|
||||
13
addons/very-simple-twitch/models/irc_tags.gd
Normal file
13
addons/very-simple-twitch/models/irc_tags.gd
Normal 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]
|
||||
1
addons/very-simple-twitch/models/irc_tags.gd.uid
Normal file
1
addons/very-simple-twitch/models/irc_tags.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://6085ijue6r62
|
||||
5
addons/very-simple-twitch/models/twitch_channel.gd
Normal file
5
addons/very-simple-twitch/models/twitch_channel.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class_name VSTChannel
|
||||
|
||||
var login: String
|
||||
var id: String
|
||||
var token: String
|
||||
1
addons/very-simple-twitch/models/twitch_channel.gd.uid
Normal file
1
addons/very-simple-twitch/models/twitch_channel.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c6obhlm0f1q6x
|
||||
Loading…
Add table
Add a link
Reference in a new issue