Files
xiao/commands/random/tableflip.js
T
Daniel Odendahl Jr c2738b97f7 More Aliases, Thesaurus
2017-09-26 19:00:12 +00:00

31 lines
791 B
JavaScript

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', 'tableflip-animated', 'tableflip-a'],
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(300);
await message.edit(frame);
}
return message;
}
};