More FAQ work

This commit is contained in:
Schuyler Cebulskie
2016-09-19 18:58:18 -04:00
parent f3d4755b6b
commit c72d350b30
2 changed files with 13 additions and 8 deletions

View File

@@ -1,19 +1,24 @@
# Frequently Asked Questions
These are just commonly-asked questions that usually have a common resolution. If you have issues not listed here,
please ask in the [official Discord server](https://discord.gg/bRCvFy9).
These are just questions that get asked frequently, that usually have a common resolution.
If you have issues not listed here, please ask in the [official Discord server](https://discord.gg/bRCvFy9).
Always make sure to read the documentation.
## WTF!! I get `SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode` no matter what
## No matter what, I get `SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode`‽
Update to Node.js 6.0.0 or newer.
## I get a metric fuck load of errors when installing discord.js on Windows.
## I get an absurd amount of errors when installing discord.js on Windows
The installation still worked fine, just without `node-opus`.
If you don't need voice support, using `npm install discord.js --no-optional` will prevent these errors.
## How do I get voice working?
- Install FFMPEG.
- Optionally, set up `node-opus`, which is much faster than the default `opusscript`.
## How do I install FFMPEG?
- **Ubuntu 16.04:** `sudo apt install ffpmeg`
- **Ubuntu 14.04:** `sudo apt-get install avconv`
- **Ubuntu 14.04:** `sudo apt-get install libav-tools`
- **Windows:** See the [FFMPEG section of AoDude's guide](https://github.com/bdistin/OhGodMusicBot/blob/master/README.md#download-ffmpeg).
## How do I set up `node-opus`?
- **Ubuntu:** It's already done when you run `npm install discord.js` without `--no-optional`.
## How do I set up node-opus?
- **Ubuntu:** It's already done when you run `npm install discord.js` without `--no-optional`. Congrats!
- **Windows:** See [AoDude's guide](https://github.com/bdistin/OhGodMusicBot/blob/master/README.md). Good luck.

File diff suppressed because one or more lines are too long