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

  1. from dataclasses import dataclass
  2. from typing import Awaitable, Callable
  3. from paircd.client import Client
  4. from paircd.message import Message
  5. from paircd.server import Server
  6. HandlerFunc = Callable[
  7. [Server, Client, Message],
  8. Awaitable[None],
  9. ]
  10. @dataclass
  11. class CommandHandler:
  12. cmd: str
  13. argc: int
  14. handler: HandlerFunc