Advertisement
UntitledGoose

Untitled

Feb 13th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require('discord.js');
  2.  
  3. module.exports = class pfp {
  4.     constructor(){
  5.         this.name = 'pfp';
  6.         this.alias = ['Pfp', 'Profilep', 'Profilepicture', 'ProfilePicture', 'Pfpicture', 'PfPicture'],
  7.         this.usage = 'pfp';
  8.     }
  9.  
  10.     run(bot, message, args){
  11.         let embed = new Discord.RichEmbed();
  12.         let pfp = args.slice(1).join(" ");
  13.        
  14.         if(message.author.id === '194137531695104000') {
  15.            
  16.             embed.setAuthor('Changed Profile Picture');
  17.             embed.setColor("55FF55");
  18.             embed.setImage(`${pfp}`);
  19.            
  20.             bot.user.setAvatar(`${pfp}`);
  21.             message.channel.send(embed);
  22.             message.delete();
  23.         }
  24.     }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement