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)