Skip to content

Commit

Permalink
revert: random index on birthday videos
Browse files Browse the repository at this point in the history
  • Loading branch information
N3aar committed Dec 16, 2024
1 parent a3c1d41 commit 9828d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/announceScheduledEvent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { birthdayVideos } from "@/utils/contants.js";
import { getRandomInt } from "@/utils/random.js";
import { container } from "@sapphire/pieces";
import type { MessageCreateOptions, TextChannel } from "discord.js";

Expand Down Expand Up @@ -88,8 +89,7 @@ export default async function announceScheduledEvent() {
};

if (hasBirthdays) {
const random =
birthdayVideos[Math.floor(Math.random() * birthdayVideos.length)];
const random = birthdayVideos[getRandomInt(0, birthdayVideos.length - 1)];

message.files = [
{
Expand Down

0 comments on commit 9828d9e

Please sign in to comment.