change readme

This commit is contained in:
mangorifo
2023-04-19 00:43:08 +08:00
parent 1e4410b70f
commit 0384c40730
3 changed files with 12 additions and 10 deletions
+10 -8
View File
@@ -29,19 +29,20 @@ To make a webhook:
Of course, you must get a release first, as said in the prerequisites. After you get a jar, put it in the `plugins` folder
On first run, it will make a directory in the server's base directory.\
In it, there will be two important files:\
These files will be `NoS/notifyWebhook.json` and `NoS/pubMessageWebhook.json`.
In it, there will be one important file:\
This file will be `NoS/config_webhook.json`.
Of course, put the webhook URL of where the events should be logged in `notifyWebhook.json`
Of course, put the webhook URL of where the events should be logged in the `url_notify` field.
`pubMessageWebhook.json` is for a command named `/send-message`. This will simply send text to the webhook containing provided text.\
Put the webhook link in `url`.
The `url_publicmsg` field is for a command named `/send-message`. This will simply send text to the webhook containing provided text.\
Put the webhook link in it.
An example of what these files' content should be:
An example of what the file's content should be:
```json
{
"url": "<get the webhook link from earlier and paste>"
"url_notify": "<get the webhook link from earlier and paste>",
"url_publicmsg": "<same as earlier>"
}
```
@@ -50,6 +51,7 @@ If you change this value, you have to restart the server to apply changes.
By default, its value is:
```json
{
"url": "default-ns"
"url_notify": "default-ns",
"url_publicmsg": "default-ns"
}
```