From ae2e8f23f6f8510a0a9ae5d034fb554c21a8416c Mon Sep 17 00:00:00 2001 From: Xargana Date: Sat, 29 Mar 2025 22:21:52 +0300 Subject: [PATCH] a --- discord/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/discord/index.js b/discord/index.js index f37ec35..4ca588b 100644 --- a/discord/index.js +++ b/discord/index.js @@ -277,17 +277,15 @@ async function askCody(question) { } } client.once("ready", async () => { - const timestamp = new Date().toISOString(); - console.log(`[${timestamp}] Logged in as ${client.user.tag}`); + console.log(`Logged in as ${client.user.tag}`); await updateCommands(); const ownerId = process.env.OWNER_ID; const owner = await client.users.fetch(ownerId); const startupEmbed = { title: "Bot Status Update", - description: "Bot has started successfully", + description: `Bot started successfully at `, color: 0x00ff00, - timestamp: new Date(), fields: [ { name: "Bot Name", @@ -295,8 +293,8 @@ client.once("ready", async () => { inline: true }, { - name: "Start Time", - value: new Date().toLocaleString(), + name: "Relative Time", + value: ``, inline: true } ], @@ -310,6 +308,7 @@ client.once("ready", async () => { + client.on("interactionCreate", async (interaction) => { // Handle slash commands if (interaction.isChatInputCommand()) {