SHARE
TWEET

Untitled

a guest Apr 24th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3.  
  4. var TOKEN = "";
  5.  
  6. var users;
  7.  
  8. client.on("ready", () => {
  9.   client.user.setActivity(`Serving test servers`);
  10. });
  11.  
  12.  
  13.  
  14. client.on("message", (msg) => {
  15.   if(msg.channel.id == 570595861470642196 && msg.author.id != client.user.id && msg.content.startsWith("!avatar")){
  16.     var id = msg.content.replace("!avatar", "")
  17.     client.fetchUser(id).then(fUser => {
  18.       client.channels.get(msg.channel.id).send(fUser.avatarURL);
  19.     });
  20.   }
  21. });
  22.  
  23.  
  24.  
  25. client.login(TOKEN);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top