From 2e672868252b82a54d0daa5fbb58be719669927f Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 26 Mar 2023 01:53:42 +0200 Subject: [PATCH] Redesign about --- commands/Info/about.js | 50 ++++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/commands/Info/about.js b/commands/Info/about.js index 71ae56b..766195d 100644 --- a/commands/Info/about.js +++ b/commands/Info/about.js @@ -1,14 +1,40 @@ const { EmbedBuilder } = require('discord.js'); + module.exports = { - name: "about", - description: "Info about the bot", - run: async (client, interaction) => { - const embed = new EmbedBuilder() - .setColor("#FF0000") - .setTitle("About rAI") - .setDescription(`Latency : ${client.ws.ping}ms\n\nrAI is a bot managed by \`snxraven#8205\` running an LLM called Alpaca.\n\nSpecs: Intel i7-1065G7 (8) @ 3.900GHz with 11 GB of RAM\nChat is set to 7 Threads\nConfigured Memory Speed: 3733 MT/s\nUSB Liveboot\n\nSingle Task Only - 256 Max Token Output`) - .setTimestamp() - .setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` }); - interaction.followUp({ embeds: [embed] }); - }, -}; \ No newline at end of file + name: "about", + description: "Info about the bot", + run: async (client, interaction) => { + const specsFields = [ + { + name: "Processor", + value: "Intel i7-1065G7 (8) @ 3.900GHz" + }, + { + name: "Memory", + value: "11 GB RAM" + }, + { + name: "Chat Threads", + value: "7" + }, + { + name: "Memory Speed", + value: "3733 MT/s" + }, + { + name: "Other", + value: "USB Liveboot\nSingle Task Only - 256 Max Token Output" + } + ]; + + const embed = new EmbedBuilder() + .setColor("#FF0000") + .setTitle("About rAI") + .setDescription(`Latency : ${client.ws.ping}ms\n\nrAI is a bot managed by \`snxraven#8205\` running an LLM called Alpaca.`) + .addFields(specsFields) + .setTimestamp() + .setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` }); + + interaction.followUp({ embeds: [embed] }); + }, +};