mirror of
https://github.com/iio612/DEFENDER.git
synced 2026-02-13 19:24:23 +00:00
First Version 6
This commit is contained in:
15
core/classes/protocol.py
Normal file
15
core/classes/protocol.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from typing import Literal, TYPE_CHECKING
|
||||
from .protocols.unreal6 import Unrealircd6
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from core.irc import Irc
|
||||
|
||||
class Protocol:
|
||||
|
||||
def __init__(self, protocol: Literal['unreal6'], ircInstance: 'Irc'):
|
||||
|
||||
self.Protocol = None
|
||||
if protocol == 'unreal6':
|
||||
self.Protocol: Unrealircd6 = Unrealircd6(ircInstance)
|
||||
else:
|
||||
self.Protocol = None
|
||||
Reference in New Issue
Block a user