mirror of
https://github.com/danbulant/Shasha
synced 2026-05-19 03:58:38 +00:00
23 lines
No EOL
860 B
JavaScript
23 lines
No EOL
860 B
JavaScript
'use strict';
|
|
|
|
const commando = require("@iceprod/discord.js-commando");
|
|
const { trySend, defaultImageEmbed } = require("../../resources/functions");
|
|
const { fetchNeko } = require("nekos-best.js");
|
|
|
|
module.exports = class wave extends commando.Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: "wave",
|
|
memberName: "wave",
|
|
group: "image",
|
|
description: "Wave to you friends!"
|
|
});
|
|
}
|
|
async run(msg) {
|
|
msg.channel.startTyping();
|
|
const title = `${msg.guild ? msg.member.displayName : msg.author.username} is waving`;
|
|
const image = await fetchNeko("wave");
|
|
const emb = defaultImageEmbed(msg, image.url); emb.setAuthor(title, msg.author.displayAvatarURL({ size: 128, format: "png", dynamic: true }));
|
|
return trySend(this.client, msg, emb);
|
|
}
|
|
}; |