Removed folder check

This commit is contained in:
Vylpes 2020-10-23 19:01:49 +01:00
parent cef2976058
commit d668aee138

View file

@ -34,10 +34,7 @@ class client extends Client {
if (typeof config.prefix != "string") throw "Prefix is not a string";
if (typeof config.commands != "object") throw "Commands is not a string";
if (!existsSync(`${process.cwd()}/${config.commands}`)) throw "Commands folder doesn't exist";
if (typeof config.events != "object") throw "Events is not a string";
if (!existsSync(`${process.cwd()}/${config.events}`)) throw "Events folder doesn't exist";
this._config = config;
}