Skip to content

Commit ba3e0e4

Browse files
committed
feat: add logging on check function
1 parent c005aad commit ba3e0e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bot/structures/GiveawayHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default class GiveawayHandler {
6363
const users = await this.fetchUsers(reaction);
6464
const list = users.filter((u) => u.id !== message.author.id);
6565

66-
if (g.boosted?.length) {
66+
if (g.boosted.length) {
6767
const used: string[] = [];
6868
const members = await message.guild!.members.fetch();
6969
const boosts = g.boosted.sort((a, b) => b.entries - a.entries);
@@ -156,6 +156,8 @@ export default class GiveawayHandler {
156156
guildId,
157157
});
158158

159+
this.client.logger.info(`[GIVEAWAY HANDLER]: Checking ${giveaways.length} if they're ready for draw`);
160+
159161
const now = Date.now();
160162
if (!giveaways.length) return;
161163
for (const giveaway of giveaways.values()) {

0 commit comments

Comments
 (0)