1
0
Fork 0
forked from vbatts/maubot

Add command matching stuff

This commit is contained in:
Tulir Asokan 2018-10-16 00:25:23 +03:00
parent c79ed97a47
commit 0b246e44a8
7 changed files with 196 additions and 34 deletions

View file

@ -17,13 +17,17 @@ from typing import TYPE_CHECKING
from abc import ABC
if TYPE_CHECKING:
from mautrix import Client as MatrixClient
from .client import MaubotMatrixClient
from .command_spec import CommandSpec
class Plugin(ABC):
def __init__(self, client: 'MatrixClient') -> None:
def __init__(self, client: 'MaubotMatrixClient') -> None:
self.client = client
def set_command_spec(self, spec: 'CommandSpec') -> None:
pass
async def start(self) -> None:
pass