mirror of
https://github.com/SrIzan10/Recluse-Bot.git
synced 2026-05-01 10:55:24 +00:00
Create tobecontinue.js
This commit is contained in:
23
commands/image manipulation/tobecontinue.js
Normal file
23
commands/image manipulation/tobecontinue.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const Discord = require('discord.js');
|
||||
const { AME_API } = require('../../config');
|
||||
const AmeClient = require('amethyste-api');
|
||||
const AmeAPI = new AmeClient(AME_API)
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: "tobecontinued",
|
||||
aliases: ['tbc'],
|
||||
category: "Image",
|
||||
description: "Shows A ToBeContinued Image",
|
||||
usage: "[username | nickname | mention | ID] (optional)",
|
||||
|
||||
run: async (bot, message, args) => {
|
||||
|
||||
let user = await message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.guild.members.cache.find(r => r.user.username.toLowerCase() === args.join(' ').toLocaleLowerCase()) || message.guild.members.cache.find(r => r.displayName.toLowerCase() === args.join(' ').toLocaleLowerCase()) || message.member;
|
||||
let m = await message.channel.send("<:recluse2:827722972923428904> | **Please Wait...**");
|
||||
let buffer = await AmeAPI.generate("tobecontinued", { url: user.user.displayAvatarURL({ format: "png", size: 512 }) });
|
||||
let attachment = new Discord.MessageAttachment(buffer, "tobecontinued.png");
|
||||
m.delete({ timeout: 4000 });
|
||||
message.channel.send(attachment);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user