Update the signature on bot.exit()

This commit is contained in:
Firepup Sixfifty 2023-11-05 17:38:43 -06:00
parent ecbc21f907
commit dd5b432ead
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

4
bot.py
View file

@ -3,7 +3,7 @@ from socket import socket, AF_INET, SOCK_STREAM
from overrides import bytes, bbytes
from logs import log
import re
from typing import NoReturn
class bot:
def __init__(server: str):
@ -44,6 +44,6 @@ class bot:
def log(self, message: object) -> None:
log(message, self.server)
def exit(message: object) -> None:
def exit(message: object) -> NoReturn:
log(message, self.server, "EXIT")
exit(1)