Skip to content

Commit

Permalink
feat: add ping in ms to command
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Dec 25, 2023
1 parent 6afca2c commit 5f8bc7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/docs/docs.commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { AlgoliaAutocomplete, DiscordJSAutocomplete, MDNAutocomplete } from './a
import { AlgoliaApps } from './enums';
import { DiscordJSSearchOptions, SearchOptions } from './options';
import { DocsService } from './docs.service';
import { ButtonStyle } from 'discord.js';

const DOC_DESCRIPTION = (app: string) => `📖 Display docs for ${app}`;

Expand Down
2 changes: 1 addition & 1 deletion src/general/general.commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class GeneralCommands {
@SlashCommand({ name: 'ping', description: '🚀 Get bot ping' })
public async ping(@Context() [interaction]: SlashCommandContext) {
return interaction.reply({
content: `Pong!`,
content: `Pong! ${inlineCode(`${Math.round(this.client.ws.ping)}ms`)}}`,
ephemeral: true
});
}
Expand Down

0 comments on commit 5f8bc7a

Please sign in to comment.