updated README

This commit is contained in:
2023-02-15 17:07:26 +01:00
parent bee9d7ae55
commit 5f13ecae34
3 changed files with 50 additions and 31 deletions

View File

@@ -40,7 +40,7 @@ signal events_disconnected
# The id has been received from the welcome message.
signal events_id(id)
# Twitch directed the bot to reconnect to a different URL
signal events_reconnect()
signal events_reconnect
# Twitch revoked a event subscription
signal events_revoked(event, reason)
@@ -426,6 +426,7 @@ func connect_to_irc() -> bool:
connected = true
return success
# Connect to Twitch EventSub. Make sure to authenticate first.
func connect_to_eventsub(url : String = "wss://eventsub-beta.wss.twitch.tv/ws") -> void:
eventsub = WebSocketPeer.new()
eventsub.connect_to_url(url)