This commit is contained in:
Christopher Cookman 2024-05-08 00:09:35 -06:00
parent 7c1707e4c6
commit 47614c7850
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -328,12 +328,8 @@ discord.on("interactionCreate", async (interaction) => {
// Send an embed showing info about the bot, including number of guilds, number of subscribed rooms, etc
let guilds = discord.guilds.cache.size;
let channels = 0;
await db.run(`SELECT COUNT(*) FROM channels`, (err, row) => {
if (err) {
console.error(err.message);
}
channels = row[0];
});
await db.get(`SELECT COUNT(*) as count FROM channels`, (err, row) => {
channels = row.count
const embed = {
title: "About Me!",
thumbnail: {
@ -356,6 +352,8 @@ discord.on("interactionCreate", async (interaction) => {
icon_url: discord.users.cache.get("289884287765839882").avatarURL()
}
}
interaction.reply({ embeds: [embed]});
});
}
break;
}