From 8687b5da848a4ffc6f7e3e0f2128c48c87e5ab25 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 14 Feb 2021 12:59:18 +0100 Subject: [PATCH] added botinfo --- commands/botinfo.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 commands/botinfo.js diff --git a/commands/botinfo.js b/commands/botinfo.js new file mode 100644 index 0000000..5eb747f --- /dev/null +++ b/commands/botinfo.js @@ -0,0 +1,23 @@ +const Discord = require('discord.js'); +const {prefix} = require('../config.json'); + + + +module.exports = { + name: 'botinfo', + description: 'Shows information about the bot', + execute(message, client) { + console.log(client) + const embed = new Discord.MessageEmbed() + .setColor(15780145) + .setTitle("Information about bot") + .setTimestamp() + .setFooter('https://github.com/SileNce5k/Soilens_BotJS') + .setAuthor("soilens bot", "https://cdn.discordapp.com/avatars/481128222147477506/1a30f57f8e403f54aaca502012aeff14.png?size=2048") + .addFields( + { name: "General info", value: `Name: ${client.user.username}\nPrefix: ${prefix}`}, + ) + message.channel.send(embed) + + } +}; \ No newline at end of file