Verify reply points new members at #play
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user