1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-30 05:01:00 -04:00
Daggerbot-TS/src/commands/ping.ts

12 lines
442 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 {
async run(client: TClient, message: Discord.Message, args: any){
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'
}