Update server.py

This commit is contained in:
Nova Cat 2025-02-04 19:18:33 -08:00
parent 3bb4565b58
commit 02bb51a4ed

View file

@ -5,6 +5,10 @@ print("Welcome! /ᐠ ˵> ⩊ <˵マ")
import socket, time, ssl, threading, traceback, sys, subprocess, yaml, sqlite3, os, importlib, datetime import socket, time, ssl, threading, traceback, sys, subprocess, yaml, sqlite3, os, importlib, datetime
from OpenSSL import SSL from OpenSSL import SSL
from requests import get from requests import get
def verify_cb(conn, cert, errnum, depth, ok):
# This obviously has to be updated
print(f'Got certificate: {cert.get_subject()}')
return ok
if not len(sys.argv) == 2: if not len(sys.argv) == 2:
print("IRCat requires the following arguments: config.yml") print("IRCat requires the following arguments: config.yml")
sys.exit(1) sys.exit(1)