twitch integration addon

This commit is contained in:
Clevertop 2024-05-18 12:40:43 +10:00
parent 558d01b6aa
commit e5a055c667
21 changed files with 1116 additions and 0 deletions

7
example/Button.gd Normal file
View file

@ -0,0 +1,7 @@
extends Button
func _pressed():
%Gift.chat(%LineEdit.text)
var channel : String = %Gift.channels.keys()[0]
%Gift.handle_command(SenderData.new(%Gift.username, channel, %Gift.last_state[channel]), (":" + %LineEdit.text).split(" ", true, 1))
%LineEdit.text = ""