From 762dfc7bb8c70a88ab404ff8e982f27d513c7464 Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 20 Jan 2019 22:06:16 +0100 Subject: [PATCH] Dominoes --- commands/hidden/domino.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 commands/hidden/domino.js diff --git a/commands/hidden/domino.js b/commands/hidden/domino.js new file mode 100644 index 00000000..331722fd --- /dev/null +++ b/commands/hidden/domino.js @@ -0,0 +1,35 @@ +const { Command } = require('discord-akairo'); + +class dominoCommand extends Command { + constructor() { + super('domino', { + aliases: ['domino'], + category: 'hidden', + args: [ + { + id: 'number', + type: 'integer', + 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; \ No newline at end of file