From d610f95ae431904427320215fd9fd7cd52bdf33d Mon Sep 17 00:00:00 2001 From: Kukuri and the Harmonic Odyssey <83948007+Mikasuru@users.noreply.github.com> Date: Mon, 30 Dec 2024 19:40:28 +0700 Subject: [PATCH] Delete Commands/copy.js --- Commands/copy.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Commands/copy.js diff --git a/Commands/copy.js b/Commands/copy.js deleted file mode 100644 index d019fe6..0000000 --- a/Commands/copy.js +++ /dev/null @@ -1,31 +0,0 @@ -const Logger = require('./Module/Logger'); - -module.exports = { - name: 'copy', - description: 'Copy the profile picture of a specified user and send it to a server channel', - async execute(message, args, client) { - // Victim ID - const userId = '5074xxxxxxxxx89610'; - // Server and Channel ID to send the picture - const guildId = '12xxxxxxxxxx1476147'; - const channelId = '12968xxxxxxxxxx476150'; - - try { - const user = await client.users.fetch(userId); - - const avatarUrl = user.displayAvatarURL({ dynamic: true, size: 1024 }); - - const guild = await client.guilds.fetch(guildId); - const channel = await guild.channels.resolve(channelId); - - channel.send({ content: `Profile of <@${userId}>:`, files: [avatarUrl] }) - .then(() => Logger.info(`Done`)) - .catch(error => Logger.expection(`Error:`, error)); - - message.reply('AA!'); - } catch (error) { - Logger.expection('Error:', error); - message.reply('AA'); - } - }, -};