forked from vbatts/maubot
Add command matching stuff
This commit is contained in:
parent
c79ed97a47
commit
0b246e44a8
7 changed files with 196 additions and 34 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue