Update Votekick module! following the same structure as other modules

This commit is contained in:
adator85
2025-08-16 02:11:21 +02:00
parent e075b7b8d5
commit 3fc49e9069
5 changed files with 121 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ class Irc:
# Define the IrcSocket object
self.IrcSocket:Union[socket.socket, SSLSocket] = None
self.IrcSocket: Union[socket.socket, SSLSocket] = None
self.__create_table()
self.Base.create_thread(func=self.heartbeat, func_args=(self.beat, ))
@@ -145,6 +145,7 @@ class Irc:
self.init_service_user()
self.__create_socket()
self.__connect_to_irc(ircInstance)
except AssertionError as ae:
self.Logs.critical(f'Assertion error: {ae}')
@@ -197,6 +198,7 @@ class Irc:
self.Logs.critical(f"AttributeError: {ae} - {soc.fileno()}")
def __ssl_context(self) -> ssl.SSLContext:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

View File

@@ -1,3 +1,6 @@
'''
Main utils library.
'''
from pathlib import Path
from typing import Literal, Optional, Any
from datetime import datetime