diff --git a/commands/fun/8ball.js b/commands/fun/8ball.js index 06e528e..326cd20 100644 --- a/commands/fun/8ball.js +++ b/commands/fun/8ball.js @@ -3,12 +3,19 @@ const { SlashCommandBuilder } = require("discord.js"); module.exports = { data: new SlashCommandBuilder().setName("8ball") - .setDescription("View your current level.") + .setDescription("You ask, and the bot answers!") .addStringOption((opt) => opt.setName("question").setDescription("Question").setRequired(true)), async execute(interaction) { try { - let eightballEmbed = new EmbedBuilder().setTitle("8ball").addFields( { name: interaction.options.getString("question"), value: eightball[Math.round(Math.random() * (eightball.length - 1))]} ); - await interaction.reply({ embed: [eightballEmbed] }); + let eightballEmbed = new EmbedBuilder() + .setDescription(`> **Question:** ${interaction.options.getString("question")}\n> **Answer:** *${eightball[Math.floor(Math.random() * eightball.length)]}*`) + .setColor("#0099ff") + .setFooter({ + text: `requested from ${interaction.user.username}`, + iconURL: interaction.user.displayAvatarURL() + }); + + await interaction.reply({ embeds: [eightballEmbed] }); } catch (error) { console.error(error); await interaction.reply("There was an error. Please ping the owner if you see this."); @@ -27,11 +34,8 @@ let eightball = [ "Yes", "Yes - definitely", "You may rely on it", - "Reply hazy, try again", "Ask again later", "Better not tell you now", - "Cannot predict now", - "Concentrate and ask again", "Don't count on it", "My reply is no", "My sources say no", diff --git a/commands/levels/level.js b/commands/levels/level.js index 59d33ab..d4a6017 100644 --- a/commands/levels/level.js +++ b/commands/levels/level.js @@ -47,11 +47,14 @@ module.exports = { where: { userID: interaction.user.id }, defaults: { level: 1, points: 0 }, }); - let levelEmbed = new EmbedBuilder().setTitle("Levels").setDescription(`You are at level ${level.level}, and ${Math.floor(((level.points) / (level.level * 100)) * 100)}% of the way to hitting level ${level.level + 1}!`); + let levelEmbed = new EmbedBuilder() + .setDescription(`> **Level:** ${level.level}\n> **Progress:** ${Math.floor(((level.points) / (level.level * 100)) * 100)}% to level ${level.level + 1}!`) + .setColor("#49ba67"); + await interaction.reply({ embeds: [levelEmbed] }); } catch (error) { console.error(error); await interaction.reply("There was an error. Please ping the owner if you see this."); } }, -}; +}; \ No newline at end of file