Dosen't let do less than 3

This commit is contained in:
Supositware 2019-01-21 15:37:55 +01:00
parent bdb0405891
commit 960deeeeb3

View file

@ -21,6 +21,8 @@ class dominoCommand extends Command {
} }
async exec(message, args) { async exec(message, args) {
if (args.domino < 2)
return message.channel.send('Can\'t do less than 3');
let domino = 'I'; let domino = 'I';
message.util.send(domino.repeat(args.number)) message.util.send(domino.repeat(args.number))