discord_bot/commands/botinfo.js
SileNce5k 49e6eaed11
Rewrite createdate and joindate gets
Update botinfo to work with new getCreationDate
Update userinfo to work with new getCreationDate
Update userinfo to work with new getJoinDate
2021-06-27 19:59:02 +02:00

22 lines
No EOL
748 B
JavaScript

const Discord = require('discord.js');
const getCreationDate = require('../util/getCreationDate');
module.exports = {
name: 'botinfo',
description: 'Shows information about the bot',
execute({message, client, prefix}) {
const embed = new Discord.MessageEmbed()
.setColor(15780145)
.setTitle("Information about bot")
.setTimestamp()
.setAuthor(client.user.username, client.user.avatarURL({ dynamic: true, size: 4096 }))
.addFields({
name: "General info", value: `Name: ${client.user.username}\nPrefix: ${prefix}\nTotal Servers: ${client.guilds.toString().length}\nCreation Date: ${getCreationDate(client.user)}\nSource: [Click Here](https://github.com/SileNce5k/discord_bot)`,
},)
message.channel.send(embed)
}
};