const Discord = module.require("discord.js");
const bot = new Discord.Client();
var newPlayers = [];
var newPlayer = {};
bot.on('guildMemberAdd', (member) =>
{
member.send('Добро пожаловать');
member.addRole(member.roles.some(val => val.name === 'Игрок'));
});