ssl back on

This commit is contained in:
2025-11-18 01:45:53 +01:00
parent 1c93a09c74
commit 845e74bd5e

View File

@@ -12,7 +12,8 @@ class TwitchBot(twitchio.Client):
# identify itself with Twitch's services. # identify itself with Twitch's services.
client_id=client_id, client_id=client_id,
client_secret=client_secret, client_secret=client_secret,
initial_channels=[channel_name] initial_channels=[channel_name],
ssl=True # Mandate: Explicitly use SSL for the IRC connection.
) )
self.channel_name = channel_name self.channel_name = channel_name
@@ -21,6 +22,7 @@ class TwitchBot(twitchio.Client):
A custom start method to bypass the default start() which can A custom start method to bypass the default start() which can
unpredictably start a webserver. This gives us direct control. unpredictably start a webserver. This gives us direct control.
""" """
print(f"DIAGNOSTIC: Initiating secure connection for user {self.db_user_id}...")
await self.connect() await self.connect()
await self.join_channels([self.channel_name]) await self.join_channels([self.channel_name])