mirror of
https://github.com/MrUnknownDE/UnknownAI.git
synced 2026-04-19 06:23:45 +02:00
push 2
This commit is contained in:
21
commands/utility/ping.js
Normal file
21
commands/utility/ping.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const Discord = require('discord.js');
|
||||
const config = require('../../configs/config.json');
|
||||
module.exports = {
|
||||
config: {
|
||||
name: 'Ping',
|
||||
description: '',
|
||||
aliases: [""],
|
||||
usage: '',
|
||||
accessableby: "",
|
||||
},
|
||||
run: async (client, message, args) => {
|
||||
const embed = new MessageEmbed()
|
||||
const latency = `\`\`\`ini\n[ ${bot.ws.ping}ms ]\`\`\``;
|
||||
embed.setTitle(`Pong!`)
|
||||
.setColor(embedcolor)
|
||||
.addField('Latency', latency, true)
|
||||
.setTimestamp();
|
||||
message.channel.send(embed);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user