stupid fix

This commit is contained in:
Davide Fantino 2022-09-18 00:41:09 +02:00
parent 64648657f1
commit 1ddf1c118c
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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)