From 52f6ca1c587df2cc74b986bc82419c867c404f47 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Sat, 23 Apr 2022 00:42:11 +0200 Subject: Initial commit --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.py (limited to 'main.py') diff --git a/main.py b/main.py new file mode 100644 index 0000000..9bd4dab --- /dev/null +++ b/main.py @@ -0,0 +1,9 @@ +class Plugin: + # A normal method. It can be called from JavaScript using call_plugin_function("method_1", argument1, argument2) + async def add(self, left, right): + return left + right + + + # Asyncio-compatible long-running code, executed in a task when the plugin is loaded + async def _main(self): + pass -- cgit v1.2.3