From 1ddf1c118c115fab43a63b8759a77bb3d80a2dce Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Sun, 18 Sep 2022 00:41:09 +0200 Subject: [PATCH] stupid fix --- README.MD | 2 +- mapvote.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index 5797239..cb2a2fc 100644 --- a/README.MD +++ b/README.MD @@ -137,7 +137,7 @@ The ID of the channel to log votes to.. "voteBroadcastMessage": "✯ MAPVOTE ✯ Vote for the next map by writing in chat the corresponding number!", "logToDiscord": true, "channelID": "112233445566778899", - "timeframes": [ + "timeFrames": [ { "start": "12:00", "end": "18:00", diff --git a/mapvote.js b/mapvote.js index a98ea14..84bdc5a 100644 --- a/mapvote.js +++ b/mapvote.js @@ -177,7 +177,7 @@ export default class MapVote extends DiscordBasePlugin { } async timeframeOptionOverrider() { const timeNow = new Date(0, 0, 0, new Date().getHours(), new Date().getMinutes()); - const activeTimeframes = this.or_options.timeframes.filter((tf) => tf.start); + const activeTimeframes = this.or_options.timeFrames.filter(tfFilter); console.log(activeTimeframes)