enhancement(lint): Fix lint errors for src/commands/you_cant_join.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-02-19 00:04:37 +00:00 committed by GitHub
parent cc4325ffd9
commit f99dd9495c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,32 +19,30 @@ export default class UserJoinEvent implements Command {
console.debug(event, "#userjoin");
//@ts-ignore
const { user, channel } = event;
if (event.channel !== "C08ELF4UK96") return;
if (event.channel !== "C08ELF4UK96") return;
try {
//@ts-ignore
await app.client.conversations.kick({
channel: channel,
user: user,
});
//@ts-ignore
await app.client.chat.postMessage({
//@ts-ignore
channel,
await app.client.conversations.kick({
channel: channel,
user: user,
});
//@ts-ignore
text: `You cant join <@${user}>`,
});
await app.client.chat.postMessage({
//@ts-ignore
channel,
//@ts-ignore
text: `You cant join <@${user}>`,
});
} catch (e) {
//@ts-ignore
await app.client.chat.postMessage({
//@ts-ignore
channel,
//@ts-ignore
text: `You are here for now <@${user}>`,
});
await app.client.chat.postMessage({
//@ts-ignore
channel,
//@ts-ignore
text: `You are here for now <@${user}>`,
});
}
});
}
}