NadekoBot/docs/guides/From Source.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2017-09-27 08:08:31 +00:00
### Prerequisites
- [.net core sdk 2.0][.netcore]
- [ffmpeg][ffmpeg] (and added to path) either download or install using your distro's package manager
- [git][git]
2017-09-27 08:08:48 +00:00
- [redis][redis] for windows, or `apt-get install redis-server` for linux
2017-09-27 08:08:31 +00:00
### Clone The Repo
2017-09-26 07:32:12 +00:00
`git clone -b 1.9 https://github.com/Kwoth/NadekoBot`
2017-06-11 13:14:49 +00:00
`cd NadekoBot/src/NadekoBot`
Edit `credentials.json.` Read the JSON Exaplanations guide on the left if you don't know how to set it up
2017-09-27 08:08:31 +00:00
### Run
2017-06-11 13:14:49 +00:00
`dotnet run -c Release`
2017-09-26 07:32:12 +00:00
*when you decide to update in the future (might not work if you've made custom edits to the source, make sure you know how git works)*
2017-09-27 08:08:31 +00:00
`git pull`
2017-09-26 07:32:12 +00:00
`dotnet run -c Release`
### !!! NOTE FOR WINDOWS USERS !!!
If you're running from source on windows, you will have to add these 2 extra lines to your credentials, after the first open bracket:
```js
"ShardRunCommand": "dotnet",
"ShardRunArguments": "run -c Release -- {0} {1}",
```
[.netcore]: https://www.microsoft.com/net/download/core#/sdk
[ffmpeg]: http://ffmpeg.zeranoe.com/builds/
2017-09-27 08:08:48 +00:00
[git]: https://git-scm.com/downloads
[redis]: https://github.com/MicrosoftArchive/redis/releases/latest