diff --git a/index.ts b/index.ts index eb67f60..b7cb3d1 100644 --- a/index.ts +++ b/index.ts @@ -85,6 +85,19 @@ const eligibilityCmd = async ctx => { } } + else if (res.status === "Sanctioned country") { + if (matchedBy === "user mention") { + return await ctx.respond({ + response_type: 'ephemeral', + text: `<@${userId}> lives in a country that cannot have packages delivered to due to sanctions.` + }) + } else { + return await ctx.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.)" : ""},` + }) + } + } else { return await ctx.respond({