Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const passwords = {
- "<pwd-0>": "519112956349513739",
- "<pwd-1>": "519905552092889108",
- "<pwd-2>": "519905552092889108",
- "<pwd-3>": "519905552092889108",
- "<pwd-4>": "519456680577335297",
- "<pwd-5>": "519456687552200734",
- "<pwd-6>": "519855134260461598",
- "<pwd-7>": "520193145133203456",
- "<pwd-10>": "520193208945344532",
- "<pwd-11>": "520193238947332116",
- "<pwd-12>": "520193258974871562",
- "<pwd-13>": "520193287198343169",
- "<pwd-14>": "520193313912127489",
- "<pwd-17>": "520193333302263809",
- "<pwd-18>": "520193354865311744",
- "<pwd-19>": "520193371462172673",
- "<pwd-20>": "520193392265789441",
- "<pwd-21>": "520193421919649793",
- "<pwd-24>": "520193443029450752"
- };
- let guild;
- bot.on("ready", function() {
- guild = bot.guild.get("519111000566398986");
- });
- bot.on("message", function(message) {
- if (!(message.channel instanceof Discord.DMChannel)) return;
- if (!guild.members.has(message.author.id)) return;
- if (!(message.content in passwords)) return;
- let member = guild.members.get(message.author.id);
- member.addRole(passwords[message.content]);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement