Haha-Yes/commands/hidden/domino.js

35 lines
681 B
JavaScript
Raw Permalink Normal View History

const { Command, Argument } = require('discord-akairo');
2019-01-20 22:06:16 +01:00
class dominoCommand extends Command {
constructor() {
super('domino', {
aliases: ['domino'],
category: 'hidden',
args: [
{
id: 'number',
type: Argument.range('number', 3, 100),
2019-01-20 22:06:16 +01:00
default: 10
}
],
description: {
content: 'domino',
usage: '',
examples: ['']
}
});
}
async exec(message, args) {
let domino = 'I';
message.util.send(domino.repeat(args.number))
.then(function () {
setTimeout(function () {
message.util.edit('| /' + domino.replace('I', ' _/_ '.repeat(args.number - 3)) + '__');
}, 1000);
});
}
}
module.exports = dominoCommand;