summary refs log tree commit diff
path: root/src/plugins/example-plugin
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-13 08:54:50 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:48:54 +0200
commit87d6a6778c6d502df511b639375fa219ac8713c6 (patch)
tree5da20d24c2f7fd17036e7ce67c72a25ec6c7bc36 /src/plugins/example-plugin
parentfeat(plugins): event system (diff)
downloadserver-87d6a6778c6d502df511b639375fa219ac8713c6.tar.xz
Update plugin loading, update example plugin, add ci task for testing if builds work
Diffstat (limited to 'src/plugins/example-plugin')
-rw-r--r--src/plugins/example-plugin/ExamplePlugin.ts7
-rw-r--r--src/plugins/example-plugin/plugin.json10
2 files changed, 17 insertions, 0 deletions
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" +}