mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
12 lines
442 B
TypeScript
12 lines
442 B
TypeScript
|
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'
|
||
|
}
|