You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
681 B
JavaScript
23 lines
681 B
JavaScript
4 years ago
|
let Command = require(`../../Structure/Command.js`);
|
||
|
const DIG = require("discord-image-generation");
|
||
|
|
||
|
module.exports = class extends Command {
|
||
|
constructor(client) {
|
||
|
super(client, {
|
||
|
name: "rip",
|
||
|
description: "Return a RIP image.",
|
||
|
category: "Images",
|
||
|
enabled: true,
|
||
|
aliases: [],
|
||
|
cooldown: 3,
|
||
|
dmOnly: false,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async run(message, args) {
|
||
|
let avatar = message.author.avatarURL;
|
||
|
let img = await new DIG.Rip().getImage(avatar);
|
||
|
message.chat.sendMessage("Please wait we're generating your image...");
|
||
|
message.chat.sendPhoto(img);
|
||
|
}
|
||
|
};
|