diff --git a/docs/guides/OSX Guide.md b/docs/guides/OSX Guide.md index a475592a..65e48643 100644 --- a/docs/guides/OSX Guide.md +++ b/docs/guides/OSX Guide.md @@ -7,7 +7,7 @@ ####Installing Homebrew -`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` +```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"``` Run `brew update` to fetch the latest package data. @@ -26,14 +26,16 @@ brew install tmux ``` ####Installing .NET Core SDK + - `ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/` - `ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/` - Download the .NET Core SDK, found [here.](https://go.microsoft.com/fwlink/?LinkID=827526) - Open the `.pkg` file you downloaded and install it. +- `ln -s /usr/local/share/dotnet/dotnet /usr/local/bin` ####Check your `FFMPEG` -**In case your `FFMPEG` wasnt installed properly** +**In case your `FFMPEG` wasnt installed properly (Optional)** - `brew options ffmpeg` - `brew install ffmpeg --with-x --with-y --with-z` etc. @@ -43,6 +45,7 @@ brew install tmux - Then try `brew install ffmpeg` again. ####Installing xcode-select + Xcode command line tools. You will do this in Terminal.app by running the following command line: `xcode-select --install` @@ -52,9 +55,11 @@ A dialog box will open asking if you want to install `xcode-select`. Select inst ####Downloading and building Nadeko - `cd ~` - `git clone -b 1.0 --recursive https://github.com/Kwoth/NadekoBot.git` -- `cd ~/NadekoBot/` +- `cd ~/NadekoBot/discord.net` +- `dotnet restore -s https://dotnet.myget.org/F/dotnet-core/api/v3/index.json` - `dotnet restore` - `cd ~/NadekoBot/src/NadekoBot/` +- `dotnet restore` - `dotnet build --configuration Release` ####Creating DiscordBot application @@ -67,7 +72,7 @@ A dialog box will open asking if you want to install `xcode-select`. Select inst - Keep this window open for now. ####Setting up Credentials.json file -- Open up the `NadekoBot` folder, which should be in your home directory, then the `src` folder and then the additonal `NadekoBot` folder. +- Open up the `NadekoBot` folder, which should be in your home directory, then `NadekoBot` folder then `src` folder and then the additonal `NadekoBot` folder. - In our `NadekoBot` folder you should have `.json` file named `credentials.json`. (Note: If you do not see a **.json** after `credentials.json `, do not add the `**.json**`. You most likely have `"Hide file extensions"` enabled.) - If you mess up the setup of `credentials.json`, rename `credentials_example.json` to `credentials.json`. - Open the file with your Text editor. @@ -82,23 +87,27 @@ A dialog box will open asking if you want to install `xcode-select`. Select inst - If done correctly, you are now the bot owner. You can add multiple owners by seperating each owner ID with a comma within the square brackets. ####Running NadekoBot - + +- Using tmux + `tmux new -s nadeko` ^this will create a new session named “nadeko” `(you can replace “nadeko” with anything you prefer and remember its your session name)`. -or if you want to use Screen, run: +- Using Screen + +If you want to use Screen, run: `screen -S nadeko` ^this will create a new screen named “nadeko” `(you can replace “nadeko” with anything you prefer and remember its your screen name)`. +- Start Nadeko using dotnet: + `cd ~/NadekoBot/src/NadekoBot/` -- Start Nadeko using dotnet: - `dotnet run --configuration Release` CHECK THE BOT IN DISCORD, IF EVERYTHING IS WORKING @@ -112,7 +121,7 @@ Now time to move bot to background and to do that, press CTRL+B+D (this will dit - Copy your `Client ID` from your [Discord bot applications page.][DiscordApp] - Replace the `12345678` in this link `https://discordapp.com/oauth2/authorize?client_id=12345678&scope=bot&permissions=66186303` with your `Client ID`. - Your edited link should look like this: `https://discordapp.com/oauth2/authorize?client_id=**YOUR_CLENT_ID**&scope=bot&permissions=66186303`. -- Go to newly created link and pick the server we created, and click `Authorize`. +- Go to newly created link and pick the server, and click `Authorize`. - Bot should be added to your server. ####Setting NadekoBot Music @@ -142,4 +151,4 @@ Nadeko is really easy to update as of version 1.0! just copy and paste the comma [Atom]: https://atom.io/ [Invite Guide]: http://discord.kongslien.net/guide.html [Google Console]: https://console.developers.google.com -[Soundcloud]: https://soundcloud.com/you/apps/new \ No newline at end of file +[Soundcloud]: https://soundcloud.com/you/apps/new