From 87d6a6778c6d502df511b639375fa219ac8713c6 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 13 Aug 2022 08:54:50 +0200 Subject: Update plugin loading, update example plugin, add ci task for testing if builds work --- src/plugins/example-plugin/ExamplePlugin.ts | 7 +++++++ src/plugins/example-plugin/plugin.json | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/plugins/example-plugin/ExamplePlugin.ts create mode 100644 src/plugins/example-plugin/plugin.json (limited to 'src/plugins/example-plugin') diff --git a/src/plugins/example-plugin/ExamplePlugin.ts b/src/plugins/example-plugin/ExamplePlugin.ts new file mode 100644 index 00000000..e6f70657 --- /dev/null +++ b/src/plugins/example-plugin/ExamplePlugin.ts @@ -0,0 +1,7 @@ +import { Plugin } from "@fosscord/util"; + +export default class TestPlugin extends Plugin { + onPluginLoaded(): void { + console.log("Hello from test plugin! IT WORKS!!!!!!!"); + } +} \ No newline at end of file diff --git a/src/plugins/example-plugin/plugin.json b/src/plugins/example-plugin/plugin.json new file mode 100644 index 00000000..2fcb7a00 --- /dev/null +++ b/src/plugins/example-plugin/plugin.json @@ -0,0 +1,10 @@ +{ + "id": "example-plugin", + "name": "Fosscord example plugin", + "authors": [ + "The Arcane Brony" + ], + "repository": "https://github.com/fosscord/fosscord-server", + "license": "", + "index": "ExamplePlugin.js" +} -- cgit 1.5.1