text:`${matchedBy!=="user mention"?"You aren't":`<@${userId}> isn't`} verified and therefore aren't eligible for rewards from your program.${matchedBy!=="user mention"?`\nCheck out the <https://forms.hackclub.com/eligibility?slack_id=${userId}|eligiblity form> to verify.`:""}${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""}`,
text:`${matchedBy!=="user mention"?"You":`<@${userId}>`} provided insufficient evidence that ${matchedBy!=="user mention"?"you":"they"} are a student.${matchedBy!=="user mention"?`\nCheck out the <https://forms.hackclub.com/eligibility?slack_id=${userId}|eligiblity form> to re-verify.`:""}${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""}`,
unfurl_links: true
})
}
elseif(res.status==="Unknown"){
returnawaitctx.respond({
response_type:'ephemeral',
text:`${matchedBy!=="user mention"?"Your verification":`<@${userId}>'s verification`} has not been accepted yet.${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""}`,
unfurl_links: true
})
}
elseif(res.status==="Ineligible"){
if(matchedBy==="user mention"){
returnawaitctx.respond({
response_type:'ephemeral',
text:`<@${userId}>'s verification has been denied.`
})
}else{
returnawaitctx.respond({
response_type:'ephemeral',
text:`Your verification has been denied. If you believe this to be a mistake, please contact an admin of the program you are applying for.${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""},`
text:`<@${userId}> lives in a country that cannot have packages delivered to due to sanctions.`
})
}else{
returnawaitctx.respond({
response_type:'ephemeral',
text:`You live in a country that cannot have packages delivered to due to sanctions.${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""},`
text:`${matchedBy!=="user mention"?"You have verified your":`<@${userId}> has verified their`} student status, and ${matchedBy!=="user mention"?"are":"is"}${res.status}.${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""}`,
text:`${matchedBy!=="user mention"?"You have verified your":`<@${userId}> has verified their`} student status, and ${matchedBy!=="user mention"?"are":"is"} *${res.status}*.${matchedBy=="not allowed"?" (Only whitelisted users can check other people's verification statuses.)":""}`