diff --git a/commands/info/pfp.js b/commands/info/pfp.js index dd76507..68a4640 100644 --- a/commands/info/pfp.js +++ b/commands/info/pfp.js @@ -16,9 +16,9 @@ module.exports = { let user = message.guild.members.cache.get(info); let guildPfp = user.avatarURL({format: 'png', dynamic: true, size: 4096}); let globalPfp = user.user.avatarURL({format: 'png', dynamic: true, size: 4096}); - let sendText = `${globalPfp}`; + let sendText = `Global pfp:\n${globalPfp}`; if(guildPfp != null){ - sendText = `Global pfp${sendText}\nGuild pfp:\n${guildPfp}`; + sendText = `${sendText}\nGuild pfp:\n${guildPfp}`; } message.channel.send(sendText) diff --git a/commands/misc/ig.js b/commands/misc/ig.js deleted file mode 100644 index 21268b7..0000000 --- a/commands/misc/ig.js +++ /dev/null @@ -1,28 +0,0 @@ - -module.exports = { - name: 'ig', - description: 'Replaces Instagram links with kkinstagram and deletes the original message', - execute({message, args}) { - const noUrlErr = "You need to provide an Instagram link to use this command." - if(args.length < 1) { - message.channel.send(noUrlErr); - return; - } - let replacedLink = ""; - const regex = /(?<=\/)(instagram)\.com/g - if(args[0].startsWith("https://") || args[0].startsWith("http://")){ - replacedLink = args[0].replace(regex, "kkinstagram.com"); - } - if(replacedLink.length === 0 || args[0] === replacedLink){ - message.channel.send(noUrlErr); - return; - } - message.channel.send(replacedLink); - try{ - message.delete() - }catch(err){ - console.error(`${this.name}: An error occurred while trying to delete the original message.`) - console.error(err); - } - } -}; \ No newline at end of file diff --git a/commands/misc/say.js b/commands/misc/say.js index 2995f6a..e8ca4e6 100644 --- a/commands/misc/say.js +++ b/commands/misc/say.js @@ -1,7 +1,6 @@ module.exports = { name: 'say', description: 'Repeats arguments', - admin: true, execute({message, args}) { if(args.length == 0) diff --git a/commands/misc/x.js b/commands/misc/x.js deleted file mode 100644 index 87b6a26..0000000 --- a/commands/misc/x.js +++ /dev/null @@ -1,28 +0,0 @@ - -module.exports = { - name: 'x', - description: 'Replaces X/Twitter links with fxtwitter and deletes the original message', - execute({message, args}) { - const noUrlErr = "You need to provide an X or twitter link to use this command." - if(args.length < 1) { - message.channel.send(noUrlErr); - return; - } - let replacedLink = ""; - const regex = /(?<=\/)(x|twitter)\.com/g - if(args[0].startsWith("https://") || args[0].startsWith("http://")){ - replacedLink = args[0].replace(regex, "fxtwitter.com"); - } - if(replacedLink.length === 0 || args[0] === replacedLink){ - message.channel.send(noUrlErr); - return; - } - message.channel.send(replacedLink); - try{ - message.delete() - }catch(err){ - console.error(`${this.name}: An error occurred while trying to delete the original message.`) - console.error(err); - } - } -}; \ No newline at end of file