From 1dfe8d106e8318422735c62f00d5188c7aa89ef8 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 27 Sep 2017 08:44:02 +0200 Subject: [PATCH] updated json explanations for restart command. --- docs/JSON Explanations.md | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/JSON Explanations.md b/docs/JSON Explanations.md index 71dd0999..3ca347be 100644 --- a/docs/JSON Explanations.md +++ b/docs/JSON Explanations.md @@ -22,7 +22,8 @@ If you do not see `credentials.json` you will need to rename `credentials_exampl "TotalShards": 1, "ShardRunCommand": "", "ShardRunArguments": "", - "ShardRunPort": null + "ShardRunPort": null, + "RestartCommand": null } ``` ----- @@ -161,7 +162,27 @@ It should look like: - **TotalShards** - Required if the bot will be connected to more than 1500 servers. - Most likely unnecessary to change until your bot is added to more than 1500 servers. ------ +- **RestartCommand** + - Required if you want to be able to use `.restart` command + - It requires command, and arguments to the command which to execute right before bot stops + - If you're using linux, it's easier, and more reliable to use auto restart option, and just use `.die` + +For linux, or from the source, this is usually +```json +"RestartCommand": { + "Cmd": "dotnet", + "Args": "run -c Release" +} +``` + +For windows (regular installation, or from the updater), this is usually + +```json +"RestartCommand": { + "Cmd": "NadekoBot.exe", + "Args": "" +} +``` ## DB files