Fix smogon spacing

This commit is contained in:
Dragon Fire
2021-01-21 16:54:00 -05:00
parent d577340382
commit 6255915728
+5
View File
@@ -67,6 +67,11 @@ module.exports = class SmogonCommand extends Command {
for (const game of fetchGames) {
embed.addField(` ${games[game]}`, `[${data.smogonTiers[game].join('/')}](${data.smogonURL(game)})`, true);
}
if (fetchGames.length % 3 !== 0 && fetchGames.length > 3) {
for (let i = 0; i > 3 - (fetchGames.length % 3); i++) {
embed.addField('\u200B', '\u200B', true);
}
}
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);