i forgot to change the url

This commit is contained in:
Rana 2025-06-27 12:09:35 +01:00
parent 702e3e966e
commit 2a8af5667a

View file

@ -16,8 +16,6 @@ const eligibilityCmd = async (ctx: any) => {
let userId = ctx.context.userId;
let matchedBy = "no input"
const iUser = await ctx.client.users.info({ user: ctx.context.userId! });
if ((match = text.match(/\<\@(.+)\|(.+)>/))) {
userId = match[1];
matchedBy = "user mention"
@ -25,7 +23,7 @@ const eligibilityCmd = async (ctx: any) => {
matchedBy = "invalid input"
const res = await fetch("https://verify.hackclub.dev/api/status", {
const res = await fetch("https://identity.hackclub.com/api/external/check?slack_id" + userId, {
method: "POST",
headers: { 'content-type': 'application/json' },
body: JSON.stringify({