You can now choose port
where shard communication is happening. JSON explanations with instructions on how to ed it optional shard settings
This commit is contained in:
@ -17,7 +17,8 @@ If you do not see `credentials.json` you will need to rename `credentials_exampl
|
||||
"MashapeKey": "4UrKpcWXc2mshS8RKi00000y8Kf5p1Q8kI6jsn32bmd8oVWiY7",
|
||||
"OsuApiKey": "4c8c8fdff8e1234581725db27fd140a7d93320d6",
|
||||
"Db": null,
|
||||
"TotalShards": 1
|
||||
"TotalShards": 1,
|
||||
"ShardRunCommand": ""
|
||||
}
|
||||
```
|
||||
-----
|
||||
@ -143,14 +144,29 @@ 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.
|
||||
|
||||
- **ShardRunCommand**
|
||||
- Required if you're sharding your bot on windows using .exe, or in a custom way.
|
||||
- This internally defaults to `dotnet`
|
||||
- For example, if you want to shard your NadekoBot which you installed using windows installer, you would want to set it to something like this: `C:\Program Files\NadekoBot\system\NadekoBot.exe`
|
||||
- **ShardRunArguments**
|
||||
- Required if you're sharding your bot on windows using .exe, or in a custom way.
|
||||
- This internally defaults to `run -c Release -- {0} {1} {2}` which will be enough to run linux and other 'from source' setups
|
||||
- {0} will be replaced by the `shard ID` of the shard being ran, {1} by the shard 0's process id, and {2} by the port shard communication is happening on
|
||||
- If shard0 (main window) is closed, all other shards will close too
|
||||
- For example, if you want to shard your NadekoBot which you installed using windows installer, you would want to set it to `{0} {1} {2}`
|
||||
- **ShardRunPort**
|
||||
- Bot uses a random UDP port in [5000, 6000) range for communication between shards
|
||||
-----
|
||||
|
||||
## DB files
|
||||
|
||||
Nadeko saves all the settings and infomations in `NadekoBot.db` file here:
|
||||
Nadeko saves all the settings and infomations in `NadekoBot.db` file here:
|
||||
**On linux**
|
||||
`NadekoBot\src\NadekoBot\bin\Release\netcoreapp1.1\data\NadekoBot.db` (NadekoBot v1.4x)
|
||||
in order to open the database file you will need [DB Browser for SQLite](http://sqlitebrowser.org/).
|
||||
**On windows**
|
||||
`[INSTALL_PATH]\NadekoBot\system\data\NadekoBot.db`
|
||||
|
||||
In order to open the database file you will need [DB Browser for SQLite](http://sqlitebrowser.org/).
|
||||
|
||||
To make changes
|
||||
|
||||
|
Reference in New Issue
Block a user