mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
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:
parent
cc4325ffd9
commit
f99dd9495c
1 changed files with 18 additions and 20 deletions
|
|
@ -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}>`,
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue