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()) {