meshtastic-matrix-relay/example_plugins/hello_world.py

14 wiersze
386 B
Python
Czysty Zwykły widok Historia

2023-04-27 23:58:29 +00:00
from plugins.base_plugin import BasePlugin
class Plugin(BasePlugin):
plugin_name = "helloworld"
async def handle_meshtastic_message(
self, packet, formatted_message, longname, meshnet_name
):
self.logger.debug("Hello world, Meshtastic")
async def handle_room_message(self, room, event, full_message):
self.logger.debug("Hello world, Matrix")