This commit is contained in:
2020-12-12 16:58:15 +01:00
parent d024fe6a3e
commit fac6006da9
341 changed files with 60376 additions and 0 deletions

19
commands/ping.js Normal file
View File

@@ -0,0 +1,19 @@
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}`);
},
};