diff --git a/Installing-on-Mac.md b/Installing-on-Mac.md new file mode 100644 index 0000000..49a0565 --- /dev/null +++ b/Installing-on-Mac.md @@ -0,0 +1,42 @@ +A guide by orels1 + +1. Install brew + In Finder or Spotlight, search for and open terminal + In the window opened - paste this: + `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` + and press enter + +2. After the installation, install required packages, by pasting commands below and pressing enter one-by-one + `brew install python3` + `brew install git` + `brew install ffmpeg` + `brew install opus` + `pip3 install git+https://github.com/Rapptz/discord.py@async` + `pip3 install youtube_dl` + `pip3 install imgurpython` + +3. Goto the folder you want to put red in through Terminal: + use the commands cd (change directory) and ls (list sh*t) to navigate to the folder. + for example, if you want Red to be installed in Applications in a folder named Discord Stuff, + you could type cd "Applications/Discord Stuff" (notice, if you have a space in a folder name, surround the path with quotes) + or you could type cd Applications then ls to make sure you're in the right place, then cd "Discord Stuff" + or you could type cd then drag the folder from finder into terminal before pressing enter + +4. Paste this command into terminal and press enter: + `git clone -b develop --single-branch https://github.com/Twentysix26/Red-DiscordBot.git Red-DiscordBot` + do not close the termial windows afterwards + +5. Download [this script](https://gist.githubusercontent.com/Twentysix26/17ea542e0879a9da299a/raw/81e6fec77206200780808815dd67dc24e0b8106a/macRedLoop.sh) and place the file inside your Red-DiscordBot folder, + it should be in the same folder with red.py + +6. Run `export PATH=$PATH:/usr/local/Cellar/opus/1.1.2/lib/` in the terminal + +7. In terminal, in Red-DiscordBot floder, paste this command and press enter: + `sh macRedLoop.sh` + +8. Complete initial setup as the bot requires (email, password, etc.) + remember to sign into the bot's account once and join your main server. + This is the only time you will need to sign into the bot's account. + +9. Type [your_prefix_here]ping on your server (in any chat a bot can write to) + your bot should return "pong" \ No newline at end of file