mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
Tableflip Command
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
};
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "42.7.1",
|
"version": "42.8.0",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user