enhancement(lint): Fix lint errors for src/commands/onuserjoinslack.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-03-14 00:49:12 +00:00 committed by GitHub
parent 8d7e069e0a
commit 8484935ca0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,27 +1,27 @@
//@ts-nocheck
import { App } from "@slack/bolt";
import { Command, onlyForMe } from "../modules/BaseCommand";
import { banned_users } from "./joinchannel";
import { ModifiedApp } from "../modules/slackapp";
export default class UserJoinSlackEvent implements Command {
name: string;
description: string;
is_event?: boolean;
constructor() {
this.name = `team_join`;
this.description = `User joins slack `;
this.is_event = true;
}
run(app: ModifiedApp) {
// app.command()
app.event(this.name, async ({ event, say, body }) => {
console.debug(event, "#userjoinslack");
//@ts-ignore
app.client.chat.postMessage({
text: JSON.stringify(event),
channel: "#zeon-public"
})
});
}
}
//@ts-nocheck
import { App } from "@slack/bolt";
import { Command, onlyForMe } from "../modules/BaseCommand";
import { banned_users } from "./joinchannel";
import { ModifiedApp } from "../modules/slackapp";
export default class UserJoinSlackEvent implements Command {
name: string;
description: string;
is_event?: boolean;
constructor() {
this.name = `team_join`;
this.description = `User joins slack `;
this.is_event = true;
}
run(app: ModifiedApp) {
// app.command()
app.event(this.name, async ({ event, say, body }) => {
console.debug(event, "#userjoinslack");
//@ts-ignore
app.client.chat.postMessage({
text: JSON.stringify(event),
channel: "#zeon-public",
});
});
}
}