1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 04:40:59 -05:00
Daggerbot-TS/src/commands/ping.ts

12 lines
431 B
TypeScript
Raw Normal View History

2022-11-13 08:46:50 -05:00
import { TClient } from "src/client";
import Discord from 'discord.js';
export default {
2022-11-13 19:18:15 -05:00
async run(client: TClient, message: Discord.Message){
2022-11-13 08:46:50 -05:00
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'
}