cardboardbox/cmds_SharpBot/Fun/space.js
2019-12-13 09:13:45 -05:00

22 lines
551 B
JavaScript

exports.run = (bot, msg, args) => {
if (args.length < 1) {
throw 'You must provide text to space out!';
}
let amount = 2;
if (!isNaN(args[0])) {
amount = parseInt(args[0]);
(amount < 1) && (amount = 1);
(amount > 15) && (amount = 15);
args = args.slice(1);
}
msg.edit(args.join(' '.repeat(amount / 2)).split('').join(' '.repeat(amount)));
};
exports.info = {
name: 'space',
usage: 'space [amount] <text>',
description: 'Spaces out text to look all dramatic n\' stuff'
};