From 7a4d7ba2d4a004e5ba1600544861a7b69ae47ab8 Mon Sep 17 00:00:00 2001 From: kanimaru Date: Tue, 8 Sep 2026 15:00:36 +0200 Subject: [PATCH] fix: problem with not classified nodes --- addons/twitcher/chat/twitch_auto_message.gd | 12 ++++++------ addons/twitcher/chat/twitch_auto_messenger.gd | 10 +++++----- addons/twitcher/chat/twitch_bot.gd | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/twitcher/chat/twitch_auto_message.gd b/addons/twitcher/chat/twitch_auto_message.gd index ccfde53c..9d42c247 100644 --- a/addons/twitcher/chat/twitch_auto_message.gd +++ b/addons/twitcher/chat/twitch_auto_message.gd @@ -1,6 +1,6 @@ -extends Node +extends Twitcher -## Experimental: Node is not stable yet. For suggestions and feedback please use discord. +## Experimental: Node is not stable yet. For suggestions and feedback please use discord. class_name TwitchAutoMessage static var all_rotational_messages: Array[TwitchAutoMessage] = [] @@ -27,7 +27,7 @@ var last_send: int func _enter_tree() -> void: all_rotational_messages.append(self) - + func _exit_tree() -> void: all_rotational_messages.erase(self) @@ -35,14 +35,14 @@ func _exit_tree() -> void: func send() -> void: var color: TwitchAnnouncementColor = TwitchAnnouncementColor.all_colors[announcement_color] - - if use_bot: + + if use_bot: if announcement: TwitchBot.announcement(message, color, source_only, broadcaster) else: TwitchBot.chat(message, "", source_only, broadcaster) return - + if not broadcaster: broadcaster = await TwitchService.get_current_user_via_api(TwitchAPI.instance) if not sender: sender = broadcaster if announcement: diff --git a/addons/twitcher/chat/twitch_auto_messenger.gd b/addons/twitcher/chat/twitch_auto_messenger.gd index e43e10c0..c4b85382 100644 --- a/addons/twitcher/chat/twitch_auto_messenger.gd +++ b/addons/twitcher/chat/twitch_auto_messenger.gd @@ -1,4 +1,4 @@ -extends Node +extends Twitcher ## Experimental: Node is not stable yet. For suggestions and feedback please use discord. ## Used to send the twitch_auto_messages @@ -7,7 +7,7 @@ class_name TwitchAutoMessenger ## The minimal delay between the messages @export var delay_in_s: float = 300: set = _update_delay_in_s - + ## The minimal amount of messages before a new message got triggered @export var min_messages: int = -1 @@ -41,8 +41,8 @@ func _on_event(event: TwitchEventsub.Event) -> void: if message.broadcaster_user_id == broadcaster_to_listen.id: _current_message_sent += 1 _check_to_send() - - + + func _on_timer_timeout() -> void: _timer_ready = true _check_to_send() @@ -61,7 +61,7 @@ func _fill_bag() -> void: func _send_message() -> void: if _bag.is_empty(): _fill_bag() - + _bag.shuffle() var message: TwitchAutoMessage = _bag.pop_back() message.send() diff --git a/addons/twitcher/chat/twitch_bot.gd b/addons/twitcher/chat/twitch_bot.gd index beae40cb..64a48c6b 100644 --- a/addons/twitcher/chat/twitch_bot.gd +++ b/addons/twitcher/chat/twitch_bot.gd @@ -1,6 +1,6 @@ @icon("res://addons/twitcher/assets/chat-bot-icon.svg") @tool -extends Node +extends Twitcher ## Helper to send messages with a second bot user and the corrosponding bot badge. ## Take care that setup is needed that it actually works! The right scopes for the target channel