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 01:14:33 +00:00 committed by GitHub
parent 7be3f68d63
commit b04a517650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,11 +11,10 @@ export default class Ping implements Command {
run(app: App) {
// app.command()
app.command(this.name, async ({ command, ack, respond }) => {
const stamp = Date.now();
await ack();
const stamp = Date.now();
await ack();
if (!onlyForMe(command.user_id))
if (!onlyForMe(command.user_id))
return respond(`:x: You cannot use this command.`);
respond(`Pong took: \`${Date.now() - stamp}ms\``).then((d) => {});