1
0
Fork 0
forked from vbatts/maubot

More changes

This commit is contained in:
Tulir Asokan 2018-10-16 16:41:02 +03:00
parent 0b246e44a8
commit eef052b1e9
9 changed files with 195 additions and 61 deletions

View file

@ -22,11 +22,12 @@ if TYPE_CHECKING:
class Plugin(ABC):
def __init__(self, client: 'MaubotMatrixClient') -> None:
def __init__(self, client: 'MaubotMatrixClient', plugin_instance_id: str) -> None:
self.client = client
self.id = plugin_instance_id
def set_command_spec(self, spec: 'CommandSpec') -> None:
pass
self.client.set_command_spec(self.id, spec)
async def start(self) -> None:
pass