diff --git a/server.js b/server.js index ad05a34..0905338 100644 --- a/server.js +++ b/server.js @@ -47,7 +47,7 @@ async function onInteraction(i) { const r = await discord('PUT', '/guilds/' + i.guild_id + '/members/' + u.id + '/roles/' + role); if (!r.ok) { console.error('role add failed', r.status, r.body.slice(0, 200)); opsLog('⚠️ verify FAILED for ' + u.username + ' (' + u.id + '): http ' + r.status); return ephemeral('Something went wrong on our side. Ask in <#' + E('SUPPORT_CHANNEL_ID') + '> and an admin will verify you.'); } opsLog('✅ verified: ' + u.username + ' (' + u.id + ') · account ' + Math.round(age / 86400000) + ' d old'); - return ephemeral('✅ Welcome in, ' + (u.global_name || u.username) + '! <#' + E('GENERAL_CHANNEL_ID') + '> and <#' + E('SUPPORT_CHANNEL_ID') + '> are open to you now. Earning happens in the CTB Rewards app: https://t.me/CTBRewards_Bot/app'); + return ephemeral('✅ Welcome in, ' + (u.global_name || u.username) + '! <#' + E('GENERAL_CHANNEL_ID') + '> and <#' + E('SUPPORT_CHANNEL_ID') + '> are open to you now.' + (E('PLAY_CHANNEL_ID') ? ' Every game is one click away in <#' + E('PLAY_CHANNEL_ID') + '>.' : '') + ' Earning happens in the CTB Rewards app: https://t.me/CTBRewards_Bot/app'); } const BUTTON_MSG = {