Skip to content

Commit

Permalink
Issuing /ready without being joined to a ready system will now join…
Browse files Browse the repository at this point in the history
… the user to the system if it exists
  • Loading branch information
LegendaryLinux committed Aug 16, 2024
1 parent 7067df0 commit 023a5a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slashCommandCategories/readyChecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ module.exports = {
);

if (!isJoined) {
return interaction.reply({
content: 'You have not joined the ready system.',
ephemeral: true,
});
await dbExecute(
'REPLACE INTO readyChecks (readySystemId, userId, isReady) VALUES (?, ?, 1)',
[readySystem.id, interaction.user.id]
);
}

await dbExecute(
Expand Down

0 comments on commit 023a5a4

Please sign in to comment.