From a8c28d139d28c6a409fc6f08b394f48f2f881715 Mon Sep 17 00:00:00 2001 From: Rev Date: Sun, 30 May 2021 15:07:05 +0900 Subject: [PATCH] update mod file to reflect changes done on config.json --- src/mod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod.js b/src/mod.js index a037688..8ae9610 100644 --- a/src/mod.js +++ b/src/mod.js @@ -9,13 +9,13 @@ class ChooseTheWeather { chooseWeather(data) { // Get the config file for the weather - const { weatherTypes, weather, loop, overrides} = require('./config.json'); + const { weatherTypes, weather, random, overrides} = require('./config.json'); // Get the weather sets to choose from const weatherSets = require('./weatherSet.json'); // Put the choosen weather from the config in a variable let choosenWeather; - if (loop) { + if (random) { const randomIndex = Math.floor(Math.random() * weatherTypes.length); choosenWeather = weatherSets[weatherTypes[randomIndex]]; } else {