diff --git a/commands/levels/leaderboard.js b/commands/levels/leaderboard.js index 0378b46..fed9a82 100644 --- a/commands/levels/leaderboard.js +++ b/commands/levels/leaderboard.js @@ -49,7 +49,7 @@ module.exports = { console.log(leaderboard); let levelEmbed = new EmbedBuilder() .setTitle("Leaderboard") - for(let i = page*10; i < page*10+10; i++) { + for(let i = page*10; i < page*10+leaderboard.length; i++) { levelEmbed.addFields({ name: `${i+1}.`, value: `<@${leaderboard[i].userID}>: Level ${leaderboard[i].level}, and ${Math.round(leaderboard[i].points / leaderboard[i].level)}% of the way to the next level!` }); } diff --git a/commands/selenite/ai.js b/commands/selenite/ai.js deleted file mode 100644 index 2d964be..0000000 --- a/commands/selenite/ai.js +++ /dev/null @@ -1,13 +0,0 @@ -const { EmbedBuilder, SlashCommandBuilder } = require("discord.js"); -const { ai_key, logs_channel } = require("../../config.json"); -const { GoogleGenerativeAI } = require("@google/generative-ai"); - -module.exports = { - data: new SlashCommandBuilder() - .setName("ai") - .setDescription("ai") - .addStringOption((opt) => opt.setName("prompt").setDescription("prompt").setRequired(true)), - async execute(interaction) { - await interaction.reply("Go to #ai") - }, -};