Merge branch 'main' of https://github.com/Xargana/blahaj-srv
This commit is contained in:
commit
a08d0b2ad0
|
@ -277,17 +277,15 @@ async function askCody(question) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
client.once("ready", async () => {
|
client.once("ready", async () => {
|
||||||
const timestamp = new Date().toISOString();
|
console.log(`Logged in as ${client.user.tag}`);
|
||||||
console.log(`[${timestamp}] Logged in as ${client.user.tag}`);
|
|
||||||
await updateCommands();
|
await updateCommands();
|
||||||
|
|
||||||
const ownerId = process.env.OWNER_ID;
|
const ownerId = process.env.OWNER_ID;
|
||||||
const owner = await client.users.fetch(ownerId);
|
const owner = await client.users.fetch(ownerId);
|
||||||
const startupEmbed = {
|
const startupEmbed = {
|
||||||
title: "Bot Status Update",
|
title: "Bot Status Update",
|
||||||
description: "Bot has started successfully",
|
description: `Bot started successfully at <t:${Math.floor(Date.now() / 1000)}:F>`,
|
||||||
color: 0x00ff00,
|
color: 0x00ff00,
|
||||||
timestamp: new Date(),
|
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "Bot Name",
|
name: "Bot Name",
|
||||||
|
@ -295,8 +293,8 @@ client.once("ready", async () => {
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Start Time",
|
name: "Relative Time",
|
||||||
value: new Date().toLocaleString(),
|
value: `<t:${Math.floor(Date.now() / 1000)}:R>`,
|
||||||
inline: true
|
inline: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -310,6 +308,7 @@ client.once("ready", async () => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
client.on("interactionCreate", async (interaction) => {
|
client.on("interactionCreate", async (interaction) => {
|
||||||
// Handle slash commands
|
// Handle slash commands
|
||||||
if (interaction.isChatInputCommand()) {
|
if (interaction.isChatInputCommand()) {
|
||||||
|
|
Loading…
Reference in a new issue