You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2021. It is now read-only.
.setDescription(`To gain access to this server you must solve a captcha. The link will expire in 15 minutes.\nhttp://${domain == '' ? 'localhost:8080' : domain}/verify/${linkId}`)
.setColor('BLUE')
member.send(embed)
})
function main() {
client.login(discord_bot_token).catch(e => {
console.log('[Discord] Invalid bot token!');
process.exit(0)
})
}
async function addRole(discordId) {
try {
var guild = await client.guilds.fetch(discord_guild_id);
var member = await guild.members.fetch(discordId);
var role = await guild.roles.cache.find(r => r.name === discord_verified_role);
member.roles.add(role)
console.log(`Added roles to user ${discordId}.`)
} catch (e) {
console.log(`Error adding role to user ${discordId}.`);