Update bot

This commit is contained in:
Syxpi
2025-10-18 23:20:19 +02:00
commit c590dd1c64
4459 changed files with 650347 additions and 0 deletions

23
commands/utility/ping.js Normal file
View File

@@ -0,0 +1,23 @@
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
category: 'utility',
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with API latency and ICMP latency!'),
async execute(interaction) {
// --- API latency Discord ---
const apiLatency = Math.round(interaction.client.ws.ping);
// --- Reply final ---
const embed = new EmbedBuilder()
.setColor('#00FFFF')
.setTitle('🏓 Ping Status')
.addFields(
{ name: '🌐 API Latency', value: `${apiLatency}ms`, inline: true }
)
.setTimestamp();
await interaction.reply({ embeds: [embed] });
},
};