This repository has been archived on 2026-03-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bot/commands/ping.js
2020-12-12 16:58:15 +01:00

19 lines
628 B
JavaScript

module.exports = {
name: 'ping',
description: 'Pokazuje ping.',
args: false,
guildOnly: false,
execute(msg, args, Discord, config, client) {
msg.delete()
.catch(console.error);
const pingEmbed = new Discord.MessageEmbed()
.setTitle('Pong!')
.setColor(config.embedColor)
.setDescription(`Ping API wynosi ${client.ws.ping}`)
.attachFiles('./gractwo.png')
.setFooter(`Komenda wywołana przez ${msg.author.username}`, 'attachment://gractwo.png')
.setTimestamp();
msg.channel.send(pingEmbed);
console.log(`Responded to ping request by ${msg.author.username}`);
},
};