meshtastic-matrix-relay/plugins/base_plugin.py

14 wiersze
380 B
Python
Czysty Zwykły widok Historia

2023-04-25 21:29:17 +00:00
from abc import ABC, abstractmethod
class BasePlugin(ABC):
@abstractmethod
async def handle_meshtastic_message(
packet, formatted_message, longname, meshnet_name
):
print("Base plugin: handling Meshtastic message")
@abstractmethod
async def handle_room_message(room, event, full_message):
print("Base plugin: handling room message")