Skip to content

Troubleshooting Guide

Bacon Fixation edited this page Dec 23, 2020 · 3 revisions

Troubleshooting

Here we will cover some common issues some users may encounter when installing the dependencies or running Master-Bot.

Getting Started

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:

  1. 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.

  2. 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 running npm view discord.js-commando version.

  3. 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 hit npm install.

  4. Make sure you have installed Python 2.7 and FFmpeg correctly.

Error Installing Dependencies

There is a couple of dependencies like Canvas, Quick.db that need a compiler other than Python 2.7 in order to install them

Windows (Local Host)

  1. You can install just the bare essentails by running npm install --global windows-build-tools in terminal
  2. Grab Visual Code Studio if you want have an Editor

Linux (Local Host)

  1. You can install just the bare essentails sudo apt-get install -y build-essential in terminal

Web Hosts

Web hosts like Heroku, Glitch.com, and repl.it don't usually have troubles with the dependencies in Master-Bot.

  1. Look at the Forums or Support page of the hosting service for people that are using for similar issues
  2. Switch to hosting it locally or one of the other web hosting services that are out there

API Command Issues/Limits

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

Clone this wiki locally