|
@ -433,6 +433,11 @@ async function rounds(action, interaction) { |
|
|
embeds: [roundsEmbed], |
|
|
embeds: [roundsEmbed], |
|
|
ephemeral: true |
|
|
ephemeral: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
} else if (action === "hit"){ |
|
|
|
|
|
let totalCount = await generatedRound.countDocuments({}); |
|
|
|
|
|
let userCount = await generatedRound.countDocuments({ requestedBy: interaction.author.id }); |
|
|
|
|
|
|
|
|
|
|
|
interaction.reply(`Total Hits: ${totalCount}\nYour Hits: ${userCount}`); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -492,9 +497,6 @@ client.on("message", async (message) => { |
|
|
case "dobeabout": // Show about message of bot
|
|
|
case "dobeabout": // Show about message of bot
|
|
|
aboutMessage(message); |
|
|
aboutMessage(message); |
|
|
break; |
|
|
break; |
|
|
case "dobehits": |
|
|
|
|
|
hits(message); |
|
|
|
|
|
break; |
|
|
|
|
|
case "dobechangelog": |
|
|
case "dobechangelog": |
|
|
changelog(message); |
|
|
changelog(message); |
|
|
break; |
|
|
break; |
|
|