Dev 1.0.1
* Fix du mode twitch * Fix de coquille de dialogues * Fix du blocage dans la base aqua
This commit is contained in:
@@ -7,6 +7,8 @@ var pseudo_gathered : Array[String] = []
|
||||
func _ready():
|
||||
VerySimpleTwitch.chat_message_received.connect(_on_message_received)
|
||||
GameInfo.settings_data.twitch_changed.connect(connect_to_twitch)
|
||||
process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
VerySimpleTwitch.process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
|
||||
func connect_to_twitch(settings : SettingsData):
|
||||
pseudo_gathered = []
|
||||
@@ -20,5 +22,6 @@ func connect_to_twitch_account(channel_name: String):
|
||||
|
||||
func _on_message_received(chatter: VSTChatter):
|
||||
if not chatter.login in pseudo_gathered:
|
||||
pseudo_gathered.append(chatter.login)
|
||||
pseudo_gathered_updated.emit(pseudo_gathered)
|
||||
if chatter.message.to_lower().trim_suffix(" ") == "!stw":
|
||||
pseudo_gathered.append(chatter.login)
|
||||
pseudo_gathered_updated.emit(pseudo_gathered)
|
||||
|
||||
Reference in New Issue
Block a user