Don't load commands if env variable doesn't exist, removed catfact/dogfact, many other changes

This commit is contained in:
TheEssem 2019-11-29 20:00:14 -06:00
parent 0920c459d5
commit 16927d8667
20 changed files with 116 additions and 83 deletions

View file

@ -52,7 +52,13 @@ const paginationEmbed = async (message, pages, timeout = 120000) => {
}
}
});
reactionCollector.on("end", () => currentPage.removeReactions());
reactionCollector.on("end", () => {
try {
currentPage.removeReactions();
} catch (e) {
console.log("Reaction message was deleted");
}
});
return currentPage;
};
module.exports = paginationEmbed;