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/forceStartNextDNS.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
d90f37d90f
commit
e8c98129ce
1 changed files with 22 additions and 22 deletions
|
|
@ -1,22 +1,22 @@
|
|||
import { App } from "@slack/bolt";
|
||||
import { Command, onlyForMe } from "../modules/BaseCommand";
|
||||
|
||||
export default class nextDnsBTN implements Command {
|
||||
name: string;
|
||||
description: string;
|
||||
is_event?: boolean;
|
||||
constructor() {
|
||||
this.name = `start-nextdns-instance`;
|
||||
this.description = `nextdns`;
|
||||
this.is_event = true;
|
||||
}
|
||||
run(app: App) {
|
||||
// app.command()
|
||||
app.action(this.name, async (par) => {
|
||||
if (par.ack) await par.ack();
|
||||
if (par.body.user.id !== process.env.MY_USER_ID) return;
|
||||
//@ts-ignore
|
||||
console.log(par.body, par.event)
|
||||
});
|
||||
}
|
||||
}
|
||||
import { App } from "@slack/bolt";
|
||||
import { Command, onlyForMe } from "../modules/BaseCommand";
|
||||
|
||||
export default class nextDnsBTN implements Command {
|
||||
name: string;
|
||||
description: string;
|
||||
is_event?: boolean;
|
||||
constructor() {
|
||||
this.name = `start-nextdns-instance`;
|
||||
this.description = `nextdns`;
|
||||
this.is_event = true;
|
||||
}
|
||||
run(app: App) {
|
||||
// app.command()
|
||||
app.action(this.name, async (par) => {
|
||||
if (par.ack) await par.ack();
|
||||
if (par.body.user.id !== process.env.MY_USER_ID) return;
|
||||
//@ts-ignore
|
||||
console.log(par.body, par.event);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue