forked from Supositware/Haha-Yes
Dominoes
This commit is contained in:
parent
e143df4d2b
commit
762dfc7bb8
1 changed files with 35 additions and 0 deletions
35
commands/hidden/domino.js
Normal file
35
commands/hidden/domino.js
Normal file
|
@ -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;
|
Loading…
Reference in a new issue