mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
31 lines
788 B
JavaScript
31 lines
788 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const { wait } = require('../../util/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: 'single-res',
|
|
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;
|
|
}
|
|
};
|