Last active
March 28, 2016 22:43
-
-
Save orels1/02d64f90a7ba5fa4c3c2 to your computer and use it in GitHub Desktop.
A small tutorial on how to install and run Red on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install brew (if you don't have it already) | |
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 beautifulsoup4 | |
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 http://bit.ly/1RuLzeI and place the file inside your Red-DiscordBot folder, | |
it should be in the same folder with red.py | |
TODO: replace this step with putting opus in your path? | |
6. Open TextEdit or any other plain text editor you have installed | |
navigate to Red-DiscordBot and there into cogs folder | |
open audio.py | |
replace this code: | |
discord.opus.load_opus('libopus-0.dll') | |
with this code: | |
discord.opus.load_opus('/usr/local/Cellar/opus/1.1.2/lib/libopus.0.dylib') | |
TODO: set file as executable if needed? | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment