Tableflip Command

This commit is contained in:
Daniel Odendahl Jr
2017-09-24 03:46:07 +00:00
parent a91b4ae3af
commit 53d43508a6
2 changed files with 31 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
const Command = require('../../structures/Command');
const { wait } = require('../../structures/Util');
const frames = [
'(-°□°)- ┬─┬',
'(╯°□°)╯ ]',
'(╯°□°)╯ ︵ ┻━┻',
'(╯°□°)╯ [',
'(╯°□°)╯ ┬─┬'
];
module.exports = class TableflipCommand extends Command {
constructor(client) {
super(client, {
name: 'tableflip',
aliases: ['a-tableflip', 'animated-tableflip'],
group: 'random',
memberName: 'tableflip',
description: 'Flips a table... With animation!'
});
}
async run(msg) {
const message = await msg.say('(\\\\°□°)\\\\ ┬─┬');
for (const frame of frames) {
await wait(400);
await message.edit(frame);
}
return message;
}
};