python ircd using asyncio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
341 B

from dataclasses import dataclass
from typing import Awaitable, Callable
from paircd.client import Client
from paircd.message import Message
from paircd.server import Server
HandlerFunc = Callable[
[Server, Client, Message],
Awaitable[None],
]
@dataclass
class CommandHandler:
cmd: str
argc: int
handler: HandlerFunc