From feca7a5d620362d028c8f31353b0c996693697e3 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 27 Aug 2022 07:07:05 +0200 Subject: Merge 'webrtc' into 'dev/staging_webrtc' --- plugins/example-plugin/build.sh | 5 +++++ plugins/example-plugin/index.ts | 7 +++++++ plugins/example-plugin/plugin.json | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100755 plugins/example-plugin/build.sh create mode 100644 plugins/example-plugin/index.ts create mode 100644 plugins/example-plugin/plugin.json (limited to 'plugins/example-plugin') diff --git a/plugins/example-plugin/build.sh b/plugins/example-plugin/build.sh new file mode 100755 index 00000000..1b36607b --- /dev/null +++ b/plugins/example-plugin/build.sh @@ -0,0 +1,5 @@ +#rm -rf dist/ +#mkdir dist +rm -rfv *.js *.js.map +ln -s ../../bundle/node_modules node_modules +tsc -p . diff --git a/plugins/example-plugin/index.ts b/plugins/example-plugin/index.ts new file mode 100644 index 00000000..43650c73 --- /dev/null +++ b/plugins/example-plugin/index.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!!!!!!!"); + } +} diff --git a/plugins/example-plugin/plugin.json b/plugins/example-plugin/plugin.json new file mode 100644 index 00000000..54962226 --- /dev/null +++ b/plugins/example-plugin/plugin.json @@ -0,0 +1,7 @@ +{ + "id": "example-plugin", + "name": "Fosscord example plugin", + "authors": ["The Arcane Brony"], + "repository": "https://github.com/fosscord/fosscord-server", + "license": "" +} -- cgit 1.5.1