Skip to content

Commit

Permalink
fix: round index
Browse files Browse the repository at this point in the history
  • Loading branch information
N3aar committed Dec 15, 2024
1 parent f27a8f6 commit a3c1d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/announceScheduledEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export default async function announceScheduledEvent() {
};

if (hasBirthdays) {
const random = birthdayVideos[Math.random() * birthdayVideos.length];
const random =
birthdayVideos[Math.floor(Math.random() * birthdayVideos.length)];

message.files = [
{
Expand Down

0 comments on commit a3c1d41

Please sign in to comment.