Advertisement
DayDun

dJulkalenderbot

Dec 12th, 2018
2,843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const passwords = {
  2.     "<pwd-0>": "519112956349513739",
  3.     "<pwd-1>": "519905552092889108",
  4.     "<pwd-2>": "519905552092889108",
  5.     "<pwd-3>": "519905552092889108",
  6.     "<pwd-4>": "519456680577335297",
  7.     "<pwd-5>": "519456687552200734",
  8.     "<pwd-6>": "519855134260461598",
  9.     "<pwd-7>": "520193145133203456",
  10.     "<pwd-10>": "520193208945344532",
  11.     "<pwd-11>": "520193238947332116",
  12.     "<pwd-12>": "520193258974871562",
  13.     "<pwd-13>": "520193287198343169",
  14.     "<pwd-14>": "520193313912127489",
  15.     "<pwd-17>": "520193333302263809",
  16.     "<pwd-18>": "520193354865311744",
  17.     "<pwd-19>": "520193371462172673",
  18.     "<pwd-20>": "520193392265789441",
  19.     "<pwd-21>": "520193421919649793",
  20.     "<pwd-24>": "520193443029450752"
  21. };
  22.  
  23. let guild;
  24. bot.on("ready", function() {
  25.     guild = bot.guild.get("519111000566398986");
  26. });
  27.  
  28. bot.on("message", function(message) {
  29.     if (!(message.channel instanceof Discord.DMChannel)) return;
  30.    
  31.     if (!guild.members.has(message.author.id)) return;
  32.    
  33.     if (!(message.content in passwords)) return;
  34.    
  35.     let member = guild.members.get(message.author.id);
  36.    
  37.     member.addRole(passwords[message.content]);
  38. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement