SHARE
TWEET

Discord Log Selfbot

a guest Nov 16th, 2019 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const chalk = require('chalk');
  2. const Discord = require('discord.js');
  3. const bot = new Discord.Client();
  4.  
  5. let prefix = ".";
  6.  
  7. //Bot owner ID
  8. let god = 640353391083651073;
  9.  
  10. bot.on("ready", () => {
  11.     console.log("Ready");
  12. });
  13.  
  14. // Welcomer
  15. bot.on('guildMemberAdd', member => {
  16.     console.log(`[${chalk.yellow("INFO")}] - ${chalk.cyan("#" + member.guild.name)} ${chalk.magenta(member.user.tag)}: joined.`);
  17.     }
  18. );
  19.  
  20. // Leave notif
  21. bot.on('guildMemberRemove', member => {
  22.     console.log(`[${chalk.bgRed("INFO")}] - ${chalk.cyan("#" + member.guild.name)} ${chalk.magenta(member.user.tag)} left.`);
  23.     }
  24. );
  25.  
  26. bot.on("messageDelete", (message) => {
  27.     try
  28.     {
  29.         console.log(`[${chalk.red("DELETE")}] - [${chalk.cyan("#" + message.guild.name)}] [${chalk.yellow(message.channel.name)}] - ${chalk.magenta(message.author.username)}: ${message.content}`);
  30.     }
  31.     catch
  32.     {
  33.         console.log(`[${chalk.red("DELETE")}] - ${chalk.magenta(message.author.username)}: ${message.content}`);
  34.     }
  35.     });
  36.  
  37. bot.on("message", message => {
  38.     try
  39.     {
  40.         if (message.content.includes(`<@!${bot.user.id}>`) || message.content.includes(`<@${bot.user.id}>`) || message.content.includes(bot.user.tag))
  41.         {
  42.             console.log(`[${chalk.green("SEND")}] - [${chalk.cyan(message.guild.name)}] [${"#" + chalk.yellow(message.channel.name)}] - ${chalk.magenta(message.author.username)}: ${chalk.bgYellow(message.content)}`);
  43.         }
  44.         else
  45.         {
  46.             console.log(`[${chalk.green("SEND")}] - [${chalk.cyan(message.guild.name)}] [${"#" + chalk.yellow(message.channel.name)}] - ${chalk.magenta(message.author.username)}: ${message.content}`);
  47.         }
  48.     }
  49.     catch
  50.     {
  51.         console.log(`[${chalk.green("SEND")}] - ${chalk.magenta(message.author.username)}: ${message.content}`);
  52.     }
  53.  
  54. });
  55.  
  56. bot.login("YOUR 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