From d96ce5580afb6c77f084b3933fd27881648c7cc0 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Fri, 11 Mar 2022 20:48:52 -0700 Subject: changed to vars --- twitch-bot/bot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twitch-bot/bot.js b/twitch-bot/bot.js index e1c0db2..1a21c8d 100644 --- a/twitch-bot/bot.js +++ b/twitch-bot/bot.js @@ -3,10 +3,10 @@ const fs = require('fs'); // read settings and reactions json files try { - const settings = JSON.parse(fs.readFileSync('./settings.json', 'utf8')); - const reacts = JSON.parse(fs.readFileSync('./reacts.json', 'utf8')); - const commands = JSON.parse(fs.readFileSync('./commands.json', 'utf8')); - const mod_commands = JSON.parse(fs.readFileSync('./mod_commands.json', 'utf8')); + var settings = JSON.parse(fs.readFileSync('./settings.json', 'utf8')); + var reacts = JSON.parse(fs.readFileSync('./reacts.json', 'utf8')); + var commands = JSON.parse(fs.readFileSync('./commands.json', 'utf8')); + var mod_commands = JSON.parse(fs.readFileSync('./mod_commands.json', 'utf8')); } catch (err) { console.error("An error occured trying to read the files for the Twitch bot: " + err); } -- cgit v1.2.3