mirror of
https://github.com/SrIzan10/Recluse-Bot.git
synced 2026-05-01 10:55:24 +00:00
Create magik.js
This commit is contained in:
27
commands/image manipulation/magik.js
Normal file
27
commands/image manipulation/magik.js
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
const Color = "RANDOM";
|
||||
const Discord = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "magik",
|
||||
aliases: ["magic", ""],
|
||||
category: "Image",
|
||||
description: "Shows magic image",
|
||||
usage: "magik <user> <number>",
|
||||
run: async (client, message, args) => {
|
||||
const Value = args.slice(1).join(" ");
|
||||
|
||||
if (!Value || Value.length > 150) return message.channel.send("<:recluse5:827723187981778945> | Please mention some one and after mention type number");
|
||||
|
||||
const Member = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
|
||||
|
||||
const Embed = new Discord.MessageEmbed()
|
||||
.setColor(Color)
|
||||
.setTitle("Magik")
|
||||
.setImage(encodeURI
|
||||
(`https://api.devs-hub.xyz/magik?image=${Member.user.displayAvatarURL({ format: "png" })}?size=2048&level=${Value}`))
|
||||
.setTimestamp();
|
||||
|
||||
return message.channel.send(Embed);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user