From fb4c7a1e8e1a1092a671a24035e1358962954cf1 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sat, 22 Apr 2023 18:57:15 -0600 Subject: [PATCH] oof --- index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e7b1506..b3aa470 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ client.on("messageCreate", async message => { if (message.channel.type === "DM") return; if (config.discord.levels.blacklist.includes(message.channel.id)) return; if (config.discord.levels.blacklist.includes(message.channel.parentId)) return; - + // Calculate random xp let xp = Math.floor(Math.random() * 10) + 15; // If user is not in database, add them, {user: {xp = xp, lvl = 1, totalXp: xp, msgCount = 1}} @@ -234,7 +234,10 @@ client.on("interactionCreate", async interaction => { if (err) { console.error(err); } - if (!row) return interaction.reply({ content: "This user has not sent any messages yet.", ephemeral: true }); + if (!row) return interaction.reply({ + content: "This user has not sent any messages yet.", + ephemeral: true + }); if (row) { var data = row; let lvl = data.lvl; @@ -339,4 +342,4 @@ console.log(`${colors.cyan("[INFO]")} Starting...`) // Start timer to see how long startup takes const initTime = Date.now() // Login to Discord -client.login(config.discord.token); +client.login(config.discord.token); \ No newline at end of file