forked from vbatts/maubot
More changes
This commit is contained in:
parent
0b246e44a8
commit
eef052b1e9
9 changed files with 195 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue