mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Fix smogon spacing
This commit is contained in:
@@ -67,6 +67,11 @@ module.exports = class SmogonCommand extends Command {
|
|||||||
for (const game of fetchGames) {
|
for (const game of fetchGames) {
|
||||||
embed.addField(`❯ ${games[game]}`, `[${data.smogonTiers[game].join('/')}](${data.smogonURL(game)})`, true);
|
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);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user