1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-30 00:50:59 -04:00
Daggerbot-TS/src/commands/ping.ts
2022-11-14 11:18:15 +11:00

12 lines
431 B
TypeScript

import { TClient } from "src/client";
import Discord from 'discord.js';
export default {
async run(client: TClient, message: Discord.Message){
const msg = await message.reply(`Pinging...`)
const time = msg.createdTimestamp - message.createdTimestamp;
msg.edit(`Websocket: \`${client.ws.ping}\`ms\nBot: \`${time}\``)
},
name: 'ping',
description: 'Check bot\'s latency',
category: 'bot'
}