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/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:
parent
0a272f5e5f
commit
dd0a41a852
1 changed files with 15 additions and 16 deletions
|
|
@ -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 => {
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue