diff --git a/main.js b/main.js index cb132c8..e1d9d5b 100644 --- a/main.js +++ b/main.js @@ -7,8 +7,6 @@ const config = JSON.parse(fs.readFileSync('config.json', 'utf8')) var client = new Discord.Client() -const AUTOROLEID = "332164463186673666" - client.on('ready', () => { console.log(`Logged in as ${client.user.username}...`) @@ -51,17 +49,4 @@ client.on('message', (msg) => { }) -client.on('guildMemberAdd', (memb) => { - var guild = memb.guild - var role = guild.roles.find(r => r.id == AUTOROLEID) - if (role) { - memb.addRole(role) - memb.sendMessage('', new Discord.RichEmbed() - .setColor(0x29B6F6) - .setDescription(`You got automatically assigned the role <@&${AUTOROLEID}>.`) - ) - } -}) - - client.login(config.token) \ No newline at end of file