|
1 |
| -# gotify/plugin-template [](https://travis-ci.org/gotify/plugin-template) |
| 1 | +# gotify-website-misskey |
2 | 2 |
|
3 |
| -A plugin template for [gotify/server](https://github.com/gotify/server) |
4 |
| -using [gotify/plugin-api](https://github.com/gotify/plugin-api). |
| 3 | +Gotify Misskey Webhook Bridge |
5 | 4 |
|
6 |
| -## Getting Started |
| 5 | + |
7 | 6 |
|
8 |
| -1. Clone, fork or copy this repository. |
9 |
| -1. Change `PLUGIN_NAME` in [Makefile](Makefile). |
10 |
| -1. Setup building on every release |
11 |
| - * Enable travis-ci in your repository. |
12 |
| - * Add `GH_TOKEN` environment variable see [travis-ci docs](https://docs.travis-ci.com/user/deployment/pages/#setting-the-github-token). |
13 |
| -1. Implement your plugin. See [plugin docs](https://gotify.net/docs/plugin). |
14 |
| -1. Create a release to automatically build the plugin. |
| 7 | +## Usage |
15 | 8 |
|
16 |
| -*When you're done, feel free to add your plugin to [gotify/contrib](https://github.com/gotify/contrib).* |
| 9 | +1. Enable the plugin, set the webhook slugs: |
17 | 10 |
|
18 |
| -## Building |
| 11 | +```yaml |
| 12 | +sources: |
| 13 | +- slug: yumechi-no-kuni |
| 14 | + name: mi.yumechi.jp |
| 15 | + secret: xxxx |
| 16 | +- slug: misskey-io |
| 17 | + name: misskey.io |
| 18 | + secret: xxxx |
| 19 | +``` |
19 | 20 |
|
20 |
| -For building the plugin gotify/build docker images are used to ensure compatibility with |
21 |
| -[gotify/server](https://github.com/gotify/server). |
| 21 | +2. Copy the Webhook URL and secret to Misskey (Settings -> Webhook) |
22 | 22 |
|
23 |
| -`GOTIFY_VERSION` can be a tag, commit or branch from the gotify/server repository. |
| 23 | + a. Set the base URL to receive any of 'replied to', 'renoted', 'mentioned' (reactions seem to have bugs upstream and nothing is received) |
24 | 24 |
|
25 |
| -This command builds the plugin for amd64, arm-7 and arm64. |
26 |
| -The resulting shared object will be compatible with gotify/server version 2.0.20. |
27 |
| -```bash |
28 |
| -$ make GOTIFY_VERSION="v2.0.20" FILE_SUFFIX="for-gotify-v2.0.20" build |
29 |
| -``` |
| 25 | + b. Set the base URL plus `/follow` to receive 'followed' events |
| 26 | + |
| 27 | +3. Done! |
| 28 | + |
| 29 | +## License |
| 30 | + |
| 31 | +Apache 2.0 |
0 commit comments