Remove RapidAPI dependency from wikihow

This commit is contained in:
Essem 2022-02-06 22:17:39 -06:00
parent 7536352858
commit 467abf13ab
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
3 changed files with 17 additions and 19 deletions

View file

@ -7,7 +7,6 @@ let queryValue = 0;
export async function load(command, soundStatus) {
const { default: props } = await import(`../${command}?v=${queryValue}`);
queryValue++;
if (props.requires.includes("mashape") && process.env.MASHAPE === "") return log("warn", `Mashape/RapidAPI info not provided in config, skipped loading command ${command}...`);
if (props.requires.includes("sound") && soundStatus) return log("warn", `Failed to connect to some Lavalink nodes, skipped loading command ${command}...`);
const commandArray = command.split("/");
const commandName = commandArray[commandArray.length - 1].split(".")[0];
@ -30,4 +29,4 @@ export async function load(command, soundStatus) {
}
}
return false;
}
}