1
0
Fork 0
forked from vbatts/maubot

Add a bunch of stuff

This commit is contained in:
Tulir Asokan 2018-10-14 22:08:11 +03:00
parent 60c3e8a4d3
commit 7924b70549
12 changed files with 373 additions and 10 deletions

31
maubot/plugin_base.py Normal file
View file

@ -0,0 +1,31 @@
# maubot - A plugin-based Matrix bot system.
# Copyright (C) 2018 Tulir Asokan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from typing import TYPE_CHECKING
from abc import ABC
if TYPE_CHECKING:
from mautrix import Client as MatrixClient
class Plugin(ABC):
def __init__(self, client: 'MatrixClient') -> None:
self.client = client
async def start(self) -> None:
pass
async def stop(self) -> None:
pass