SHARE
TWEET

Untitled

a guest Jul 18th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const config = require('./config.json')
  3.     , Eris = require('eris');
  4.  
  5. const bot = new Eris(config.token);
  6.  
  7. bot.on("ready", async () => {
  8.     console.log(`${bot.user.username} was started, with ${bot.users.size} users, in ${bot.channels.size} channels of ${bot.guilds.size} guilds!`);
  9.     bot.user.setActivity("ACTIVITY", {type: "PLAYING"});
  10.     bot.user.setActivity(`PREFIX | BOTUSERNAME`, {type: "PLAYING"});
  11. });
  12.    
  13. bot.on("guildCreate", guild => {
  14.     console.log(`New guild joined: ${guild.name} (id: ${guild.id}). This guild has ${guild.memberCount} members!`);
  15.     bot.user.setActivity(`Serving ${client.guilds.size} servers`);
  16. });
  17.    
  18. bot.on("guildDelete", guild => {
  19.     console.log(`I have been removed from: ${guild.name} (id: ${guild.id})`);
  20.  
  21.  
  22. bot.on('guildMemberAdd', (guild, member) => {
  23.     guild.addMemberRole(member.id, config.roleID, `Role added by Tom's AutoRole`)
  24. });
  25.  
  26. bot.connect();
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
 
Top