diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-09 21:48:28 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-09 21:48:28 -0500 |
| commit | 4b7b4e323d09ab6ce92e235037e8d69638242b4e (patch) | |
| tree | 9ca10113a910e558c6fccf17b50466003aa1141e /commands | |
| parent | bc69001b487f2edf1340d8b17c270e99711e3c80 (diff) | |
| download | PokeBot-4b7b4e323d09ab6ce92e235037e8d69638242b4e.tar.gz PokeBot-4b7b4e323d09ab6ce92e235037e8d69638242b4e.tar.bz2 PokeBot-4b7b4e323d09ab6ce92e235037e8d69638242b4e.zip | |
WARNINGS
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Moderation/lswarns.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/Moderation/lswarns.js b/commands/Moderation/lswarns.js index 1f95469..041f6d6 100644 --- a/commands/Moderation/lswarns.js +++ b/commands/Moderation/lswarns.js @@ -26,8 +26,7 @@ exports.run = async (bot, msg) => { if (!warns) return await msg.reply('Yay! You have no warns.'); const embed = new RichEmbed() .setTitle('Warns'); - for (let i = 1; i > warns; i++) { - console.log(i); + for (let i = 1; i <= warns; i++) { const warning = await db.fetch(`warns_${msg.author.id}_warn_${i}`); embed.addField('Warning #' + i, warning); } |
