-
Notifications
You must be signed in to change notification settings - Fork 2
Troubleshooting Guide
Here we will cover some common issues some users may encounter when installing the dependencies or running Master-Bot.
Many users copy commands from this bot to their existing bots and get the classic "Cannot read property 'xyz of undefined" or something else is undefined. This happens because this bot uses the master branch of discord.js which has new voice changes. Before opening an issue about the said error please try these 2 solutions:
Do not open an issue if you simply "copied" code over from this repository to your bot/existing bot. This is absolutely not recommended and will not work as expected. If you did so, the next steps won't assist you.
Did you install discord.js-commando and discord.js#master correctly? When running
npm view discord.js version
you should get 12.5.1, and you should get 0.11.0-dev from runningnpm view discord.js-commando version
.Go to your dependencies section in your package.json, you should see discord.js and discord.js-commando listed like this:
"discord.js": "github:discordjs/discord.js#master",
"discord.js-commando": "github:discordjs/Commando"
If there are numbers instead of "GitHub....", replace them with the "GitHub" versions and hitnpm install
.Make sure you have installed Python 2.7 and FFmpeg correctly.
There is a couple of dependencies like Canvas, Quick.db that need a compiler other than Python 2.7 in order to install them
- You can install just the bare essentails by running
npm install --global windows-build-tools
in terminal- Grab Visual Code Studio if you want have an Editor
- You can install just the bare essentails
sudo apt-get install -y build-essential
in terminalWeb hosts like Heroku, Glitch.com, and repl.it don't usually have troubles with the dependencies in Master-Bot.
- Look at the Forums or Support page of the hosting service for people that are using for similar issues
- Switch to hosting it locally or one of the other web hosting services that are out there
Some commands need a unique API key/token in order to use them. You need to make sure you have grabbed the correct API type when you created your key/token. Each API has its own limits, some are per minute and others per day
- YouTube v3 API - 10,000 units per day
- News API - 100 requests per day
- Yandex API - Whatever you limit you paid for
- Twitch v6 API - Limit is 800 total calls per minute
- Genius Lyrics API - No Listed Limit
- Tenor API - No Listed Limit