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
7be3f68d63
commit
b04a517650
1 changed files with 3 additions and 4 deletions
|
|
@ -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) => {});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue