mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 20:31:47 +00:00
23 lines
No EOL
866 B
JavaScript
23 lines
No EOL
866 B
JavaScript
'use strict';
|
|
|
|
const commando = require("@iceprod/discord.js-commando");
|
|
const { trySend, ranLog, defaultImageEmbed } = require("../../resources/functions");
|
|
|
|
module.exports = class neko extends commando.Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: "neko",
|
|
memberName: "neko",
|
|
group: "image",
|
|
description: "Neko."
|
|
});
|
|
}
|
|
async run(msg) {
|
|
const aut = msg.guild ? msg.guild.member(msg.author) : msg.author;
|
|
const title = `${msg.guild ? aut.displayName : aut.username}! ~Nyann~ (UwU) <3`;
|
|
const image = `https://nekos.best/nekos/${String(Math.floor(Math.random() * 314)).padStart(4, '0')}.png`;
|
|
const emb = await defaultImageEmbed(this.client, msg, aut, image, title);
|
|
trySend(this.client, msg, emb);
|
|
return ranLog(msg, "neko");
|
|
}
|
|
}; |