mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
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:
parent
8d7e069e0a
commit
8484935ca0
1 changed files with 27 additions and 27 deletions
|
|
@ -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",
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue