diff options
| author | Jonas Dellinger <jonas@dellinger.dev> | 2022-04-23 00:42:11 +0200 |
|---|---|---|
| committer | Jonas Dellinger <jonas@dellinger.dev> | 2022-04-23 00:42:11 +0200 |
| commit | 52f6ca1c587df2cc74b986bc82419c867c404f47 (patch) | |
| tree | 9a6b17d7eb1e548d304f11dc97ebfdda83a45987 /main.py | |
| download | decky-bazzite-buddy-52f6ca1c587df2cc74b986bc82419c867c404f47.tar.gz decky-bazzite-buddy-52f6ca1c587df2cc74b986bc82419c867c404f47.zip | |
Initial commit
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
