enhancement(lint): Fix lint errors for src/commands/ping.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:
zeon-neon[bot] 2024-09-09 00:47:15 +00:00 committed by GitHub
parent 0a272f5e5f
commit dd0a41a852
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,20 +1,19 @@
import { App } from "@slack/bolt";
import { Command } from "../modules/BaseCommand";
export default class Ping implements Command {
name: string;
description: string;
constructor() {
this.name = `/ping`
this.description = `Pings zeon`
export default class Ping implements Command {
name: string;
description: string;
constructor() {
this.name = `/ping`;
this.description = `Pings zeon`;
}
run(app: App) {
// app.command()
app.command("/ping", async ({ command, ack, respond }) => {
const stamp = Date.now();
await ack();
respond(`Pong took: \`${Date.now() - stamp}ms\``).then((d) => {});
});
}
}
run(app: App) {
// app.command()
app.command('/ping',async ({ command, ack, respond }) => {
const stamp = Date.now()
await ack()
respond(`Pong took: \`${Date.now() - stamp}ms\``).then(d => {
})
})
}
}