Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2018-09-13 02:00:09 +00:00
parent 8b4f00f736
commit f0a6869c85
9 changed files with 46 additions and 22 deletions
+6 -3
View File
@@ -16,15 +16,18 @@ module.exports = class MockingCommand extends Command {
prompt: 'WHaT tEXt WoUlD yOu LiKE to COnvErt?',
type: 'string',
max: 1950,
parse: text => text.toLowerCase().split('')
parse: text => text.toLowerCase()
}
]
});
}
run(msg, { text }) {
for (let i = 0; i < text.length; i += Math.floor(Math.random() * 4)) text[i] = text[i].toUpperCase();
return msg.say(`${text.join('')} <:mocking:${MOCKING_EMOJI_ID}>`);
const letters = text.split('');
for (let i = 0; i < letters.length; i += Math.floor(Math.random() * 4)) {
letters[i] = letters[i].toUpperCase();
}
return msg.say(`${letters.join('')} <:mocking:${MOCKING_EMOJI_ID}>`);
}
};